21 #ifndef otbEnvelopeSavitzkyGolayInterpolationFunctor_h
22 #define otbEnvelopeSavitzkyGolayInterpolationFunctor_h
40 template <
unsigned int Radius,
class TSeries,
class TDates,
class TWeight = TSeries>
47 static const unsigned int Degree = 2;
50 static const unsigned int nbDates = TSeries::Dimension;
87 if (df > 0.0 && df < 1.0)
102 for (
unsigned int j = 0; j <
nbDates; ++j)
unsigned int m_Iterations
TWeight::ValueType WeightType
TSeries::ValueType ValueType
otb::Functor::SavitzkyGolayInterpolationFunctor< Radius, TSeries, TDates, TWeight > SGFunctorType
TDates::ValueType DateType
static const unsigned int nbDates
void SetDates(const TDates doy)
TSeries operator()(const TSeries &series)
otb::PolynomialTimeSeries< Degree, CoefficientPrecisionType > TSFunctionType
void SetWeights(const TWeight weights)
void SetIterations(unsigned int its)
void SetDecreaseFactor(double df)
virtual ~EnvelopeSavitzkyGolayInterpolationFunctor()
Destructor.
double CoefficientPrecisionType
static const unsigned int Degree
EnvelopeSavitzkyGolayInterpolationFunctor()
Constructor.
SGFunctorType m_SGFunctor
void SetDates(const TDates doy)
void SetWeights(const TWeight weights)
unsigned int doy(const std::tm &d)
Return the day of year.
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.