37 #include <OpenMS/OpenMSConfig.h>
56 std::vector<double>
a_;
57 std::vector<double>
b_;
58 std::vector<double>
c_;
59 std::vector<double>
d_;
60 std::vector<double>
x_;
74 CubicSpline2d(
const std::vector<double>& x,
const std::vector<double>& y);
88 double eval(
double x)
const;
114 void init_(
const std::vector<double>& x,
const std::vector<double>& y);
cubic spline interpolation as described in R.L. Burden, J.D. Faires, Numerical Analysis,...
Definition: CubicSpline2d.h:54
std::vector< double > c_
quadratic spline coefficients
Definition: CubicSpline2d.h:58
double derivative(double x) const
evaluates first derivative of spline at position x
double eval(double x) const
evaluates the spline at position x
std::vector< double > a_
constant spline coefficients
Definition: CubicSpline2d.h:56
std::vector< double > b_
linear spline coefficients
Definition: CubicSpline2d.h:57
CubicSpline2d(const std::map< double, double > &m)
constructor of spline interpolation
void init_(const std::vector< double > &x, const std::vector< double > &y)
initialize the spline
std::vector< double > x_
knots
Definition: CubicSpline2d.h:60
std::vector< double > d_
cubic spline coefficients
Definition: CubicSpline2d.h:59
CubicSpline2d(const std::vector< double > &x, const std::vector< double > &y)
constructor of spline interpolation
double derivatives(double x, unsigned order) const
evaluates derivative of spline at position x
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48