63 namespace FastLowessSmoothing
101 int OPENMS_DLLAPI
lowess(
const std::vector<double>& x,
const std::vector<double>& y,
102 double f,
int nsteps,
double delta, std::vector<double>& result);
116 inline int OPENMS_DLLAPI
lowess(
const std::vector<double>& x,
const std::vector<double>& y,
117 std::vector<double>& result)
121 OPENMS_PRECONDITION(std::adjacent_find(x.begin(), x.end(), std::greater<double>()) == x.end(),
122 "The vector x needs to be sorted")
124 double delta = 0.01 * (x[ x.size()-1 ] - x[0]);
125 return lowess(x, y, 2.0/3, 3, delta, result);