20 #ifndef _CUBICHERMITESPLINE_HPP 21 #define _CUBICHERMITESPLINE_HPP 42 CubicHermiteSpline(
const std::vector<double>& points,
const std::vector<double>& values);
59 double Integrate(
double a,
double b)
override;
72 #endif // _CUBICHERMITESPLINE_HPP
cSpline * cSpline_
The class containing the algorithm for constructing splines and retrieving interpolated values...
CubicHermiteSpline(const std::vector< double > &points, const std::vector< double > &values)
Constructs a CubicHermiteSpline using standard vectors.
double Interpolate(double x) override
Interpolate at point x.
double Integrate(double a, double b) override
Definite integral between points a and b over function f.
bool IsIntegrable() override
Indicates whether the algorithm can provide an interpolated integral.
void CheckForError() const
Checks for errors and throws exception if cSpline initialization resulted in an error.
An implementation of the IInterpolation interface that acts as a wrapper for a cSpline.
Interface for interpolating between points in a discrete data set.
KernelTraitsBase< Kernel >::space_type::abscissa_type x
double Differentiate(double x) override
Derivative at the point x.
virtual ~CubicHermiteSpline()
bool IsDifferentiable() override
Indicates whether the algorithm can provide an interpolated derivative.