ICF 3.0.5.47
Technical documentation of ICF Libraries
imath::CLinearInterpolator Class Reference

Implementation of a linear interpolator. More...

#include <CLinearInterpolator.h>

Inheritance diagram for imath::CLinearInterpolator:
Collaboration diagram for imath::CLinearInterpolator:

Public Member Functions

 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
 
- Public Member Functions inherited from imath::IFunctionInterpolator
- Public Member Functions inherited from imath::TIMathFunction< Argument, Result >
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.
 

Additional Inherited Members

- Public Types inherited from imath::TIMathFunction< Argument, Result >
typedef Argument ArgumentType
 
typedef Result ResultType
 

Detailed Description

Implementation of a linear interpolator.

Definition at line 23 of file CLinearInterpolator.h.

Constructor & Destructor Documentation

◆ CLinearInterpolator() [1/2]

imath::CLinearInterpolator::CLinearInterpolator ( )

◆ CLinearInterpolator() [2/2]

imath::CLinearInterpolator::CLinearInterpolator ( double * positions,
double * values,
int nodesCount,
bool isExtrapolationEnabled = false )
Parameters
isExtrapolationEnabledIf enabled, the values will be extrapolatied also outside of defined domain, otherwise returned value for argument outside[positionMin, positionMax] is the last value.

Member Function Documentation

◆ 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:

© Witold Gantzke and Kirill Lepskiy