#include <Interpolator.h>
Inheritance diagram for O_SESSAME::Interpolator:
Definition at line 52 of file Interpolator.h.
Public Member Functions | |
virtual | ~Interpolator () |
Default Deconstructor. | |
virtual void | Interpolate (const Vector &_timePoints, const Matrix &_dataPoints)=0 |
Standard Interpolation Function. | |
virtual Vector | Evaluate (const double &_inputPoint)=0 |
Evaluate interpolation curve at a specified time. | |
virtual int | GetNumberDataPoints ()=0 |
Returns the number of data points required for interpolation. | |
virtual Interpolator * | NewPointer ()=0 |
Return a pointer to a new instance of a derived interpolator type. | |
virtual Interpolator * | Clone ()=0 |
Return a pointer to a copy of a derived interpolator type. | |
virtual bool | GetValid () |
Returns whether the current interpolation parameters are valid. | |
Protected Member Functions | |
virtual void | SetValid (const bool &_newValidValue) |
Sets the validity value of the interpolation parameters. | |
Interpolator () | |
Default constructor. Does nothing since this is an abstract class. | |
Private Attributes | |
bool | m_Valid |
Internal storage of the interpolation's "validity". |
|
Default Deconstructor.
Definition at line 56 of file Interpolator.h. |
|
Default constructor. Does nothing since this is an abstract class. Specifically, it sets the default value of the m_Valid flag. Definition at line 128 of file Interpolator.h. |
|
Standard Interpolation Function.
Implemented in O_SESSAME::LinearInterpolator, and O_SESSAME::NaturalCubicSplineInterpolator. |
|
Evaluate interpolation curve at a specified time. Output = m_Slope * _inputPoint + m_Offset
Implemented in O_SESSAME::LinearInterpolator, and O_SESSAME::NaturalCubicSplineInterpolator. |
|
Returns the number of data points required for interpolation. the number of data points is the number of X-values (time) required to interpolate.
Implemented in O_SESSAME::LinearInterpolator, and O_SESSAME::NaturalCubicSplineInterpolator. |
|
Return a pointer to a new instance of a derived interpolator type. This is used to request memory for a new instance of a derived instance when the actual type of the derived object is unknown. By calling this function, the compiler links to the correct derived function to return a pointer and allocate memory of the correct type.
Implemented in O_SESSAME::LinearInterpolator, and O_SESSAME::NaturalCubicSplineInterpolator. |
|
Return a pointer to a copy of a derived interpolator type. This is used to request memory for and copy of an instance of a derived representation when the actual type of the derived object is unknown. By calling this function, the compiler links to the correct derived function to return a pointer and allocate memory of the correct type and copy the data.
Implemented in O_SESSAME::LinearInterpolator, and O_SESSAME::NaturalCubicSplineInterpolator. |
|
Returns whether the current interpolation parameters are valid.
Definition at line 116 of file Interpolator.h. |
|
Sets the validity value of the interpolation parameters.
Definition at line 122 of file Interpolator.h. |
|
Internal storage of the interpolation's "validity".
Definition at line 132 of file Interpolator.h. |