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
16#include "../misc/bspline.h"
17
18namespace sablib {
19
34const std::vector<double> PSpline(
35 const std::vector<double> & y, const unsigned int knots_num,
36 const unsigned int degree = 3, const unsigned int s = 2, const double lambda = 1.0
37);
38
39}; // namespace sablib
40
41#endif // __SABLIB_PSPLINE_H__
B-Spline basis functions and interpolation.
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:15