Implementation of a linear interpolator.
More...
#include <CLinearInterpolator.h>
|
| CLinearInterpolator () |
|
| CLinearInterpolator (double *positions, double *values, int nodesCount, bool isExtrapolationEnabled=false) |
|
void | SetNodes (double *positions, double *values, int nodesCount) override |
|
bool | GetValueAt (const double &argument, double &result) const override |
|
double | GetValueAt (const double &argument) const override |
|
virtual bool | GetValueAt (const Argument &argument, Result &result) const =0 |
| Get function value for specified argument value.
|
|
virtual Result | GetValueAt (const Argument &argument) const =0 |
| Get function value for specified argument value.
|
|
Implementation of a linear interpolator.
Definition at line 23 of file CLinearInterpolator.h.
◆ CLinearInterpolator() [1/2]
imath::CLinearInterpolator::CLinearInterpolator |
( |
| ) |
|
◆ CLinearInterpolator() [2/2]
imath::CLinearInterpolator::CLinearInterpolator |
( |
double * | positions, |
|
|
double * | values, |
|
|
int | nodesCount, |
|
|
bool | isExtrapolationEnabled = false ) |
- Parameters
-
isExtrapolationEnabled | If enabled, the values will be extrapolatied also outside of defined domain, otherwise returned value for argument outside[positionMin, positionMax] is the last value. |
◆ GetValueAt() [1/2]
double imath::CLinearInterpolator::GetValueAt |
( |
const double & | argument | ) |
const |
|
override |
◆ GetValueAt() [2/2]
bool imath::CLinearInterpolator::GetValueAt |
( |
const double & | argument, |
|
|
double & | result ) const |
|
override |
◆ SetNodes()
void imath::CLinearInterpolator::SetNodes |
( |
double * | positions, |
|
|
double * | values, |
|
|
int | nodesCount ) |
|
overridevirtual |
The documentation for this class was generated from the following file: