OpenWareLaboratory
Interpolator Class Reference

Static Public Member Functions

static float cosine (float y1, float y2, float mu)
 
static float cubic (float y0, float y1, float y2, float mu)
 Three-point cubic interpolation of point between y1 and y2 ref: http://www.ebyte.it/library/codesnippets/P3Interpolation.html. More...
 
static float cubic (float y0, float y1, float y2, float y3, float mu)
 Four-point cubic interpolation Get the interpolated value of a curve described by y0 to y4, somewhere between the points y1 and y2. More...
 
static float cubicSmooth (float y0, float y1, float y2, float y3, float mu)
 
static float hermite (float y0, float y1, float y2, float y3, float mu, float tension=0, float bias=0)
 
static float linear (float y1, float y2, float mu)
 

Detailed Description

Definition at line 6 of file Interpolator.h.

Member Function Documentation

◆ cosine()

static float Interpolator::cosine ( float  y1,
float  y2,
float  mu 
)
inlinestatic

◆ cubic() [1/2]

static float Interpolator::cubic ( float  y0,
float  y1,
float  y2,
float  mu 
)
inlinestatic

Three-point cubic interpolation of point between y1 and y2 ref: http://www.ebyte.it/library/codesnippets/P3Interpolation.html.

Definition at line 19 of file Interpolator.h.

Referenced by InterpolatingSignalGenerator< im >::generate(), and InterpolatingCircularFloatBuffer< im >::readAt().

◆ cubic() [2/2]

static float Interpolator::cubic ( float  y0,
float  y1,
float  y2,
float  y3,
float  mu 
)
inlinestatic

Four-point cubic interpolation Get the interpolated value of a curve described by y0 to y4, somewhere between the points y1 and y2.

Definition at line 30 of file Interpolator.h.

◆ cubicSmooth()

static float Interpolator::cubicSmooth ( float  y0,
float  y1,
float  y2,
float  y3,
float  mu 
)
inlinestatic

◆ hermite()

static float Interpolator::hermite ( float  y0,
float  y1,
float  y2,
float  y3,
float  mu,
float  tension = 0,
float  bias = 0 
)
inlinestatic

◆ linear()

static float Interpolator::linear ( float  y1,
float  y2,
float  mu 
)
inlinestatic

The documentation for this class was generated from the following file: