|
ProteoWizard
|
An implementation of the IInterpolation interface that acts as a wrapper for a cSpline. More...
#include <CubicHermiteSpline.hpp>
Public Member Functions | |
| CubicHermiteSpline (const std::vector< double > &points, const std::vector< double > &values) | |
| Constructs a CubicHermiteSpline using standard vectors. More... | |
| CubicHermiteSpline (const Eigen::VectorXd &points, const Eigen::VectorXd &values) | |
| Constructs a CubicHermiteSpline using Eigen vectors. More... | |
| virtual | ~CubicHermiteSpline () |
IInterpolation interface | |
| bool | IsDifferentiable () override |
| Indicates whether the algorithm can provide an interpolated derivative. More... | |
| bool | IsIntegrable () override |
| Indicates whether the algorithm can provide an interpolated integral. More... | |
| double | Differentiate (double x) override |
| Derivative at the point x. More... | |
| double | Integrate (double a, double b) override |
| Definite integral between points a and b over function f. More... | |
| double | Interpolate (double x) override |
| Interpolate at point x. More... | |
Public Member Functions inherited from IInterpolation | |
| virtual | ~IInterpolation () |
Private Member Functions | |
| void | CheckForError () const |
| Checks for errors and throws exception if cSpline initialization resulted in an error. More... | |
Private Attributes | |
| cSpline * | cSpline_ |
| The class containing the algorithm for constructing splines and retrieving interpolated values. More... | |
An implementation of the IInterpolation interface that acts as a wrapper for a cSpline.
Definition at line 33 of file CubicHermiteSpline.hpp.
| pwiz::analysis::CubicHermiteSpline::CubicHermiteSpline | ( | const std::vector< double > & | points, |
| const std::vector< double > & | values | ||
| ) |
Constructs a CubicHermiteSpline using standard vectors.
| points | The independent values as a monotonically increasing series |
| values | The dependent values |
| pwiz::analysis::CubicHermiteSpline::CubicHermiteSpline | ( | const Eigen::VectorXd & | points, |
| const Eigen::VectorXd & | values | ||
| ) |
Constructs a CubicHermiteSpline using Eigen vectors.
| points | The independent values as a monotonically increasing series |
| values | The dependent values |
|
virtual |
|
overridevirtual |
Indicates whether the algorithm can provide an interpolated derivative.
Implements IInterpolation.
Referenced by CubicHermiteSplineTest::DiffAndIntegrateTest().
|
overridevirtual |
Indicates whether the algorithm can provide an interpolated integral.
Implements IInterpolation.
Referenced by CubicHermiteSplineTest::DiffAndIntegrateTest().
|
overridevirtual |
Derivative at the point x.
| x | Point at which to integrate. |
Implements IInterpolation.
Referenced by CubicHermiteSplineTest::DiffAndIntegrateTest().
|
overridevirtual |
Definite integral between points a and b over function f.
| [in] | a | Lower bound of the integration interval [a, b]. |
| [in] | b | Upper bound of the integration interval [a, b]. |
Implements IInterpolation.
Referenced by CubicHermiteSplineTest::DiffAndIntegrateTest().
|
overridevirtual |
Interpolate at point x.
Implements IInterpolation.
Referenced by CubicHermiteSplineTest::InterpolationTest().
|
private |
Checks for errors and throws exception if cSpline initialization resulted in an error.
|
private |
The class containing the algorithm for constructing splines and retrieving interpolated values.
Definition at line 68 of file CubicHermiteSpline.hpp.
1.8.13