sablib
Loading...
Searching...
No Matches
pspline.h
Go to the documentation of this file.
1
9
10#ifndef __SABLIB_PSPLINE_H__
11#define __SABLIB_PSPLINE_H__
12
13#include <stdexcept>
14#include <vector>
15
16namespace sablib {
17
32const std::vector<double> PSpline(
33 const std::vector<double> & y, const unsigned int knots_num,
34 const unsigned int degree = 3, const unsigned int s = 2, const double lambda = 1.0
35);
36
37}; // namespace sablib
38
39#endif // __SABLIB_PSPLINE_H__
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).
Definition pspline.cpp:17