LagrangeInterpolator Class Reference
A class used to calculate interpolation of data in one dimension in any order. More...
#include <LagrangeInterpolator.hpp>
Public Member Functions | |
LagrangeInterpolator () | |
Construct a default LagrangeInterpolator instance. | |
LagrangeInterpolator (const std::vector< double > &xp, const std::vector< double > &yp, unsigned order=1) | |
Construct a LagrangeInterpolator instance. More... | |
auto | operator() (double x) const -> double |
Return the interpolation of \(y\) at a given coordinate \(x\). | |
Detailed Description
A class used to calculate interpolation of data in one dimension in any order.
Constructor & Destructor Documentation
◆ LagrangeInterpolator()
LagrangeInterpolator | ( | const std::vector< double > & | xp, |
const std::vector< double > & | yp, | ||
unsigned | order = 1 |
||
) |
Construct a LagrangeInterpolator instance.
- Parameters
-
xp The \(x\)-coordinate points of the \(y\)-data to be interpolated. yp The \(y\)-data points to be interpolated. order The order of the interpolation.
The documentation for this class was generated from the following files:
- Reaktoro/Math/LagrangeInterpolator.hpp
- Reaktoro/Math/LagrangeInterpolator.cpp