Reaktoro  v2.11.0
A unified framework for modeling chemically reactive systems
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
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 file: