It is an interpolation function the estimates the nearest value at a given non-observed time of a time series. More...
#include <NearestValueAtTimeInterp.h>
Public Member Functions | |
std::auto_ptr < te::dt::AbstractData > | estimate (const TimeSeries &ts, te::dt::DateTime *time) const |
It estimates a value at a given non-observed time of a time series. More... | |
te::common::AbstractParameters * | getParams () |
It gets the parameters associated to the interpolator. More... | |
void | setParams (te::common::AbstractParameters *p) |
It sets the parameters associated to the interpolator. More... | |
virtual | ~NearestValueAtTimeInterp () |
Virtual destructor. More... | |
Static Public Member Functions | |
static NearestValueAtTimeInterp & | getInstance () |
It returns a reference to the singleton instance. More... | |
Protected Member Functions | |
NearestValueAtTimeInterp () | |
Constructor. More... | |
Friends | |
class | te::common::Singleton< NearestValueAtTimeInterp > |
It is an interpolation function the estimates the nearest value at a given non-observed time of a time series.
Definition at line 49 of file NearestValueAtTimeInterp.h.
|
virtual |
Virtual destructor.
Definition at line 42 of file NearestValueAtTimeInterp.cpp.
|
protected |
Constructor.
Definition at line 38 of file NearestValueAtTimeInterp.cpp.
|
virtual |
It estimates a value at a given non-observed time of a time series.
ts | A time series used in the estimation. |
time | The given non-observed time. |
Implements te::st::AbstractTimeSeriesInterp.
Definition at line 47 of file NearestValueAtTimeInterp.cpp.
References te::dt::AbstractData::clone(), te::dt::GetDistance(), and te::st::TimeSeries::getObservations().
|
staticinherited |
It returns a reference to the singleton instance.
|
inlinevirtual |
It gets the parameters associated to the interpolator.
Implements te::st::AbstractTimeSeriesInterp.
Definition at line 55 of file NearestValueAtTimeInterp.h.
|
inlinevirtual |
It sets the parameters associated to the interpolator.
p | The parameters to be associated to the interpolator. |
Implements te::st::AbstractTimeSeriesInterp.
Definition at line 57 of file NearestValueAtTimeInterp.h.
|
friend |
Definition at line 51 of file NearestValueAtTimeInterp.h.