MIRA
|
1D linear interpolator. More...
#include <math/LinearInterpolator.h>
Public Member Functions | |
LinearInterpolatorExtrapolationLimit (double limit=1.0) | |
bool | canExtrapolate () const |
int | samples () const |
int | samplesBefore () const |
int | samplesAfter () const |
template<typename Tx , typename Ty , typename ContainerTx , typename ContainerTy > | |
Ty | apply (const ContainerTx &x, const ContainerTy &y, const Tx &xx) |
1D linear interpolator.
This interpolator internally uses the lerp() method, and hence can be applied for all types that are supported by the lerp() method or implement their own lerp() method. Does support extrapolation with supplied limit. If alpha for lerp is < limit or > 1 + limit an exception is thrown. A limit of 0 means no extrapolation allowed. A limit of 1 means extrapolation about the same length of the sample interval is allowed, and so on...
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |