![]() |
APFEL 4.8.0
A PDF evolution library in C++
|
The LagrangeInterpolator class is a specialization of the Interpolator class using the lagrange interpolation procedure. More...
#include <lagrangeinterpolator.h>
Public Member Functions | |
LagrangeInterpolator (Grid const &gr) | |
The LagrangeInterpolator constructor. | |
LagrangeInterpolator (Grid const &gr, std::vector< std::vector< double > > const &distsubgrid, std::vector< double > const &distjointgrid) | |
The LagrangeInterpolator constructor. | |
double | InterpolantLog (int const &beta, double const &lnx, SubGrid const &sg) const |
This function defines the interpolating function used by the mother class Interpolator to perform the actual interpolation using polynomials in log(x). | |
double | Interpolant (int const &beta, double const &x, SubGrid const &sg) const |
This function defines the interpolating function used by the mother class Interpolator to perform the interpolation. | |
double | DerInterpolant (int const &beta, double const &x, SubGrid const &sg) const |
This function defines the derivative of the interpolating function used by the mother class Interpolator to perform the actual interpolation. | |
double | IntInterpolant (int const &beta, double const &a, double const &b, SubGrid const &sg) const |
This function defines the integral of the interpolating function used by the mother class Interpolator to perform the actual interpolation. | |
std::array< int, 2 > | SumBounds (double const &x, SubGrid const &sg) const |
This function computes the lower and upper bounds on which the the sum over interpolants is limited. | |
![]() | |
virtual | ~Interpolator ()=default |
Interpolator (Grid const &gr) | |
The Interpolator constructor. | |
Interpolator (Grid const &gr, std::vector< std::vector< double > > const &distsubgrid, std::vector< double > const &distjointgrid) | |
The Interpolator constructor. | |
double | Evaluate (double const &x) const |
Function that evaluates the interpolated function on the joint grid. | |
double | Evaluate (double const &x, int const &ig) const |
Function that evaluates the interpolated function on a given subgrid. | |
double | Derive (double const &x) const |
Function that evaluates the derivative of the interpolated function on the joint grid. | |
double | Integrate (double const &a, double const &b) const |
Function that evaluates the integral of the interpolated function in the interval [a,b] on the joint grid. | |
Grid const & | GetGrid () const |
The grid. | |
std::vector< std::vector< double > > const & | GetDistributionSubGrid () const |
The distribution on the subgrids. | |
std::vector< double > const & | GetDistributionJointGrid () const |
The distribution on the joint grid. | |
void | Print () const |
Print the Interpolator object. | |
Additional Inherited Members | |
![]() | |
Grid const & | _grid |
The stored grid reference. | |
std::vector< std::vector< double > > | _distributionSubGrid |
The array with the distribution values on the subgrid. | |
std::vector< double > | _distributionJointGrid |
The array with the distribution values on the joint grid. | |
The LagrangeInterpolator class is a specialization of the Interpolator class using the lagrange interpolation procedure.
apfel::LagrangeInterpolator::LagrangeInterpolator | ( | Grid const & | gr | ) |
The LagrangeInterpolator constructor.
gr | the x-space grid object over which interpolation takes place |
apfel::LagrangeInterpolator::LagrangeInterpolator | ( | Grid const & | gr, |
std::vector< std::vector< double > > const & | distsubgrid, | ||
std::vector< double > const & | distjointgrid ) |
The LagrangeInterpolator constructor.
gr | the x-space grid object over which interpolation takes place |
distsubgrid | the vector of subgrids |
distjointgrid | the joint subgrid |
|
virtual |
This function defines the derivative of the interpolating function used by the mother class Interpolator to perform the actual interpolation.
beta | the x-space grid index |
x | the value of the interpolation point |
sg | the SubGrid over which the interpolant is defined |
Reimplemented from apfel::Interpolator.
|
virtual |
This function defines the interpolating function used by the mother class Interpolator to perform the interpolation.
beta | the x-space grid index |
x | the value of the interpolation point |
sg | the SubGrid over which the interpolant is defined |
Implements apfel::Interpolator.
|
virtual |
This function defines the interpolating function used by the mother class Interpolator to perform the actual interpolation using polynomials in log(x).
beta | the x-space grid index |
lnx | the value (of the log) of the interpolation point |
sg | the SubGrid over which the interpolant is defined |
Implements apfel::Interpolator.
|
virtual |
This function defines the integral of the interpolating function used by the mother class Interpolator to perform the actual interpolation.
beta | the x-space grid index |
a | the value of the lower integration bound |
b | the value of the upper integration bound |
sg | the SubGrid over which the interpolant is defined |
Reimplemented from apfel::Interpolator.
|
virtual |
This function computes the lower and upper bounds on which the the sum over interpolants is limited.
x | the value in x to be interpolated |
sg | the SubGrid over which the interpolant is defined |
Implements apfel::Interpolator.