23 std::vector<double> yy;
29 std::copy(result.begin(), result.end(), p->
data);
39 std::vector<double> yy, ww;
46 std::copy(result.begin(), result.end(), p->
data);
59 std::copy(result.begin(), result.end(), p->
data);
69 std::vector<double> yy;
75 std::copy(result.begin(), result.end(), p->
data);
85 std::vector<double> yy;
91 std::copy(result.begin(), result.end(), p->
data);
100 const SABLIB_DATA_PTR y,
const unsigned int knots_num,
101 const unsigned int degree,
const unsigned int s,
const double lambda
104 std::vector<double> yy;
110 std::copy(result.begin(), result.end(), p->
data);
119 const unsigned int n,
const unsigned int polyorder,
const unsigned derive,
const double delta
125 std::copy(result.begin(), result.end(), p->
data);
134 const SABLIB_DATA_PTR y,
135 const unsigned int n,
const unsigned int polyorder,
const unsigned derive,
const double delta
138 std::vector<double> yy;
144 std::copy(result.begin(), result.end(), p->
data);
153 const SABLIB_DATA_PTR y,
const SABLIB_DATA_PTR w,
154 const double lambda,
const unsigned int s
157 std::vector<double> yy, ww;
164 std::copy(result.begin(), result.end(), p->
data);
173 const SABLIB_DATA_PTR y,
const double lambda,
const unsigned int s
176 std::vector<double> yy;
182 std::copy(result.begin(), result.end(), p->
data);
const SABLIB_DATA_PTR AllocSablibData(const size_t size)
Allocates a SABLIB_DATA structure.
const std::vector< double > GaussianKernel(const unsigned int n, const double sigma)
Generates a Gaussian kernel.
const std::vector< double > MovingAverage(const std::vector< double > &y, const unsigned int n)
Calculates the simple moving average of the input signal (std::vector<double> version).
const std::vector< double > WeightedMovingAverage(const std::vector< double > &y, const std::vector< double > &w)
Calculates the weighted moving average of the input signal (std::vector<double> version).
Smoothing using simple/weighted moving average.
const std::vector< double > GaussianFilter(const std::vector< double > &y, const unsigned int n, const double sigma)
Performs Gaussian smoothing on the input signal.
const std::vector< double > PSpline(const std::vector< double > &y, const unsigned int knots_num, const unsigned int degree, const unsigned int s, const double lambda)
Smoothes the input data using P-Splines (Penalized B-Splines).
Smoothing using penalized Spline(P-Spline).
const std::vector< double > SavitzkyGolay(const std::vector< double > &y, const unsigned int n, const unsigned int polyorder, const unsigned derive, const double delta)
Performs smoothing (and differentiation) using a Savitzky-Golay filter.
const std::vector< double > SavitzkyGolayCoefficients(const unsigned int n, const unsigned int polyorder, const unsigned derive, const double delta)
Calculates the coefficients for a Savitzky-Golay filter.
Smoothing using Savitzky-Golay filter.
const SABLIB_DATA_PTR Sablib_GaussianKernel(const unsigned int n, const double sigma)
Generates a Gaussian kernel.
const SABLIB_DATA_PTR Sablib_WeightedMovingAverage(const SABLIB_DATA_PTR y, const SABLIB_DATA_PTR w)
Calculates the weighted moving average of the input signal.
const SABLIB_DATA_PTR Sablib_MovingMedian(const SABLIB_DATA_PTR y, const unsigned int n)
Performs moving median smoothing.
const SABLIB_DATA_PTR Sablib_Whittaker(const SABLIB_DATA_PTR y, const double lambda, const unsigned int s)
Performs Whittaker smoothing (without weights).
const SABLIB_DATA_PTR Sablib_GaussianFilter(const SABLIB_DATA_PTR y, const unsigned int n, const double sigma)
Performs Gaussian smoothing on the input signal.
const SABLIB_DATA_PTR Sablib_MovingAverage(const SABLIB_DATA_PTR y, const unsigned int n)
Calculates the simple moving average of the input signal.
const SABLIB_DATA_PTR Sablib_SavitzkyGolayCoefficients(const unsigned int n, const unsigned int polyorder, const unsigned derive, const double delta)
Calculates the coefficients for a Savitzky-Golay filter.
const SABLIB_DATA_PTR Sablib_WeightedWhittaker(const SABLIB_DATA_PTR y, const SABLIB_DATA_PTR w, const double lambda, const unsigned int s)
Performs Whittaker smoothing (with weights).
const SABLIB_DATA_PTR Sablib_PSpline(const SABLIB_DATA_PTR y, const unsigned int knots_num, const unsigned int degree, const unsigned int s, const double lambda)
Smoothes the input data using P-Splines (Penalized B-Splines).
const SABLIB_DATA_PTR Sablib_SavitzkyGolay(const SABLIB_DATA_PTR y, const unsigned int n, const unsigned int polyorder, const unsigned derive, const double delta)
Performs smoothing (and differentiation) using a Savitzky-Golay filter.
The C interface of sablib smoothing functions.
const std::vector< double > Whittaker(const std::vector< double > &y, const std::vector< double > &w, const double lambda, const unsigned int s)
Performs Whittaker smoothing (std::vector<double> version, with weights).
Smoothing using Whittaker smoother.