MIRA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
LinearInterpolator Class Reference

1D linear interpolator. More...

#include <math/LinearInterpolator.h>

Inheritance diagram for LinearInterpolator:
Inheritance graph
[legend]

Public Member Functions

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)
 

Detailed Description

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.

Member Function Documentation

bool canExtrapolate ( ) const
inline
int samples ( ) const
inline
int samplesBefore ( ) const
inline
int samplesAfter ( ) const
inline
Ty apply ( const ContainerTx &  x,
const ContainerTy &  y,
const Tx &  xx 
)
inline

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