Peano
Loading...
Searching...
No Matches
toolbox::curvi::Interpolation::Lagrange Class Reference

#include <LagrangeInterpolation.h>

Static Public Member Functions

static void interpolate3D (const double position[3], const Block &block, std::vector< int > range_z, std::vector< int > range_y, std::vector< int > range_x, double result[NCOORDS])
static void interpolate1D (double position, std::vector< double > nodes, std::vector< double > values, double result[NCOORDS])
static double lagrangePolynomial (double position, int i, std::vector< double > range)
static double uniformLagrangePolynomial (double position, int i, int range)

Static Private Member Functions

static std::vector< double > getUniformMesh (int range)
static double getLagrangeDenominator (int i, int range)

Detailed Description

Definition at line 12 of file LagrangeInterpolation.h.

Member Function Documentation

◆ getLagrangeDenominator()

double toolbox::curvi::Interpolation::Lagrange::getLagrangeDenominator ( int i,
int range )
staticprivate

Definition at line 130 of file LagrangeInterpolation.h.

References getUniformMesh().

Referenced by uniformLagrangePolynomial().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getUniformMesh()

std::vector< double > toolbox::curvi::Interpolation::Lagrange::getUniformMesh ( int range)
staticprivate

Definition at line 110 of file LagrangeInterpolation.h.

Referenced by getLagrangeDenominator(), and uniformLagrangePolynomial().

Here is the caller graph for this function:

◆ interpolate1D()

void toolbox::curvi::Interpolation::Lagrange::interpolate1D ( double position,
std::vector< double > nodes,
std::vector< double > values,
double result[NCOORDS] )
static

Definition at line 53 of file LagrangeInterpolation.h.

References toolbox::curvi::Index::getIndexRange(), lagrangePolynomial(), and NCOORDS.

Here is the call graph for this function:

◆ interpolate3D()

void toolbox::curvi::Interpolation::Lagrange::interpolate3D ( const double position[3],
const Block & block,
std::vector< int > range_z,
std::vector< int > range_y,
std::vector< int > range_x,
double result[NCOORDS] )
static

Definition at line 14 of file LagrangeInterpolation.h.

References NCOORDS, uniformLagrangePolynomial(), toolbox::curvi::X, toolbox::curvi::Y, and toolbox::curvi::Z.

Here is the call graph for this function:

◆ lagrangePolynomial()

double toolbox::curvi::Interpolation::Lagrange::lagrangePolynomial ( double position,
int i,
std::vector< double > range )
static

Definition at line 75 of file LagrangeInterpolation.h.

Referenced by interpolate1D().

Here is the caller graph for this function:

◆ uniformLagrangePolynomial()

double toolbox::curvi::Interpolation::Lagrange::uniformLagrangePolynomial ( double position,
int i,
int range )
static

Definition at line 92 of file LagrangeInterpolation.h.

References getLagrangeDenominator(), and getUniformMesh().

Referenced by interpolate3D().

Here is the call graph for this function:
Here is the caller graph for this function:

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