A unified framework for modeling chemically reactive systems
Reaktoro::LagrangeInterpolator Class Reference

Detailed Description

A class used to calculate interpolation of data in one dimension in any order.

#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\).

Constructor & Destructor Documentation

Reaktoro::LagrangeInterpolator::LagrangeInterpolator ( const std::vector< double > &  xp,
const std::vector< double > &  yp,
unsigned  order = 1 

Construct a LagrangeInterpolator instance.

xpThe \(x\)-coordinate points of the \(y\)-data to be interpolated.
ypThe \(y\)-data points to be interpolated.
orderThe order of the interpolation.

The documentation for this class was generated from the following files: