latest version v1.9 - last update 10 Apr 2010 |
the parameters for the class cubicSpline More...
#include <ltiCubicSpline.h>
Public Member Functions | |
parameters () | |
parameters (const parameters &other) | |
~parameters () | |
const char * | getTypeName () const |
parameters & | copy (const parameters &other) |
parameters & | operator= (const parameters &other) |
virtual functor::parameters * | clone () const |
bool | write (ioHandler &handler, const bool complete=true) const |
bool | read (ioHandler &handler, const bool complete=true) |
Public Attributes | |
bool | useNaturalDerivatives |
double | derivativeAtFirstPoint |
double | derivativeAtLastPoint |
tpointList< T > | samplingPoints |
the parameters for the class cubicSpline
lti::cubicSpline< T >::parameters::parameters | ( | void | ) | [inline] |
default constructor
Reimplemented from lti::variablySpacedSamplesInterpolator::parameters.
References lti::cubicSpline< T >::parameters::derivativeAtFirstPoint, lti::cubicSpline< T >::parameters::derivativeAtLastPoint, lti::cubicSpline< T >::parameters::samplingPoints, and lti::cubicSpline< T >::parameters::useNaturalDerivatives.
Referenced by lti::cubicSpline< T >::parameters::clone().
lti::cubicSpline< T >::parameters::parameters | ( | const parameters & | other | ) | [inline] |
copy constructor
other | the parameters object to be copied |
Reimplemented from lti::variablySpacedSamplesInterpolator::parameters.
References lti::cubicSpline< T >::parameters::copy().
lti::cubicSpline< T >::parameters::~parameters | ( | ) | [inline, virtual] |
destructor
Reimplemented from lti::variablySpacedSamplesInterpolator::parameters.
virtual functor::parameters* lti::cubicSpline< T >::parameters::clone | ( | ) | const [inline, virtual] |
returns a pointer to a clone of the parameters
Implements lti::variablySpacedSamplesInterpolator::parameters.
References lti::cubicSpline< T >::parameters::parameters().
parameters& lti::cubicSpline< T >::parameters::copy | ( | const parameters & | other | ) | [inline] |
copy the contents of a parameters object
other | the parameters object to be copied |
Reimplemented from lti::variablySpacedSamplesInterpolator::parameters.
References lti::variablySpacedSamplesInterpolator::parameters::copy(), lti::cubicSpline< T >::parameters::derivativeAtFirstPoint, lti::cubicSpline< T >::parameters::derivativeAtLastPoint, lti::cubicSpline< T >::parameters::samplingPoints, and lti::cubicSpline< T >::parameters::useNaturalDerivatives.
Referenced by lti::cubicSpline< T >::parameters::operator=(), and lti::cubicSpline< T >::parameters::parameters().
const char* lti::cubicSpline< T >::parameters::getTypeName | ( | void | ) | const [inline, virtual] |
returns name of this type
Reimplemented from lti::variablySpacedSamplesInterpolator::parameters.
parameters& lti::cubicSpline< T >::parameters::operator= | ( | const parameters & | other | ) | [inline] |
copy the contents of a parameters object
other | the parameters object to be copied |
Reimplemented from lti::variablySpacedSamplesInterpolator::parameters.
References lti::cubicSpline< T >::parameters::copy().
bool lti::cubicSpline< T >::parameters::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [inline, virtual] |
read the parameters from the given ioHandler
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also read, otherwise only the data block will be read. |
Reimplemented from lti::variablySpacedSamplesInterpolator::parameters.
References lti::cubicSpline< T >::parameters::derivativeAtFirstPoint, lti::cubicSpline< T >::parameters::derivativeAtLastPoint, lti::ioHandler::readBegin(), lti::ioHandler::readEnd(), lti::cubicSpline< T >::parameters::samplingPoints, and lti::cubicSpline< T >::parameters::useNaturalDerivatives.
bool lti::cubicSpline< T >::parameters::write | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | const [inline, virtual] |
write the parameters in the given ioHandler
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from lti::variablySpacedSamplesInterpolator::parameters.
References lti::cubicSpline< T >::parameters::derivativeAtFirstPoint, lti::cubicSpline< T >::parameters::derivativeAtLastPoint, lti::cubicSpline< T >::parameters::samplingPoints, lti::cubicSpline< T >::parameters::useNaturalDerivatives, lti::ioHandler::writeBegin(), and lti::ioHandler::writeEnd().
double lti::cubicSpline< T >::parameters::derivativeAtFirstPoint |
This parameter saves the derivative at the begin of the function.
If the spline should start horizontal the parameter has to be zero. If the parameter useNaturalDerivatives is true this value has no effect. Default value: 0.0
Referenced by lti::cubicSpline< T >::parameters::copy(), lti::cubicSpline< T >::parameters::parameters(), lti::cubicSpline< T >::parameters::read(), and lti::cubicSpline< T >::parameters::write().
double lti::cubicSpline< T >::parameters::derivativeAtLastPoint |
This parameter saves the derivative at the end of the function.
If the spline should end horizontal the parameter has to be zero. If the parameter useNaturalDerivatives is true this value has no effect. Default value: 0.0
Referenced by lti::cubicSpline< T >::parameters::copy(), lti::cubicSpline< T >::parameters::parameters(), lti::cubicSpline< T >::parameters::read(), and lti::cubicSpline< T >::parameters::write().
tpointList<T> lti::cubicSpline< T >::parameters::samplingPoints |
This is the list of the sampling points.
Every x-value must be unique in this tpointList<T> and the list must consist of at least three points, or the apply method will fail Default value: empty list!
Referenced by lti::cubicSpline< T >::parameters::copy(), lti::cubicSpline< T >::parameters::parameters(), lti::cubicSpline< T >::parameters::read(), and lti::cubicSpline< T >::parameters::write().
bool lti::cubicSpline< T >::parameters::useNaturalDerivatives |
This boolean controls if the algorithm uses the derivative values given within the parameters object (false), or if the functor should calculate the optimal derivatives (true).
Default value: true
Referenced by lti::cubicSpline< T >::parameters::copy(), lti::cubicSpline< T >::parameters::parameters(), lti::cubicSpline< T >::parameters::read(), and lti::cubicSpline< T >::parameters::write().