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
18
namespace
sablib {
19
34
const
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__
bspline.h
B-Spline basis functions and interpolation.
sablib::PSpline
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
smoothing
pspline.h
Generated by
1.16.1