Skip to content
Snippets Groups Projects
Commit 0ab37759 authored by Jordi Inglada's avatar Jordi Inglada
Browse files

ENH: the degree of the interpolation becomes a template parameter

parent d664598d
Branches
Tags
No related merge requests found
......@@ -36,7 +36,7 @@ Savitzky, A.; Golay, M.J.E. (1964). "Smoothing and Differentiation of Data by Si
*
*/
template <unsigned int Radius, class TSeries, class TDates, class TWeight = TSeries>
template <unsigned int Radius, class TSeries, class TDates, class TWeight = TSeries, unsigned int Degree=2>
class SavitzkyGolayInterpolationFunctor
{
public:
......@@ -44,7 +44,6 @@ public:
typedef typename TSeries::ValueType ValueType;
typedef typename TDates::ValueType DateType;
typedef typename TWeight::ValueType WeightType;
static const unsigned int Degree = 2;
typedef double CoefficientPrecisionType;
typedef otb::PolynomialTimeSeries< Degree, CoefficientPrecisionType > TSFunctionType;
static const unsigned int nbDates = TSeries::Dimension;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment