Public Member Functions | List of all members
imath::CLinearInterpolator Class Reference

Implementation of a linear interpolator. More...

#include <CLinearInterpolator.h>

Inheritance diagram for imath::CLinearInterpolator:
imath::TIMathFunction< Argument, Result > istd::IPolymorphic

Public Member Functions

 CLinearInterpolator ()
 
 CLinearInterpolator (double *positions, double *values, int nodesCount, bool isExtrapolationEnabled=false)
 
void SetNodes (double *positions, double *values, int nodesCount)
 
virtual bool GetValueAt (const double &argument, double &result) const
 
virtual double GetValueAt (const double &argument) const
 
- 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. More...
 
virtual Result GetValueAt (const Argument &argument) const =0
 Get function value for specified argument value. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

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 20 of file CLinearInterpolator.h.

Constructor & Destructor Documentation

imath::CLinearInterpolator::CLinearInterpolator ( )
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

virtual bool imath::CLinearInterpolator::GetValueAt ( const double &  argument,
double &  result 
) const
virtual
virtual double imath::CLinearInterpolator::GetValueAt ( const double &  argument) const
virtual
void imath::CLinearInterpolator::SetNodes ( double *  positions,
double *  values,
int  nodesCount 
)

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

© 2007-2017 Witold Gantzke and Kirill Lepskiy