LHAPDF is hosted by Hepforge, IPPP Durham
LHAPDF  6.2.0
LHAPDF::BicubicInterpolator Class Reference

Implementation of bicubic interpolation. More...

#include <BicubicInterpolator.h>

Inheritance diagram for LHAPDF::BicubicInterpolator:
LHAPDF::Interpolator

Public Member Functions

double _interpolateXQ2 (const KnotArray1F &subgrid, double x, size_t ix, double q2, size_t iq2) const
 Interpolate a single-point in (x,Q2), given x/Q2 values and subgrid indices. More...
 
- Public Member Functions inherited from LHAPDF::Interpolator
virtual ~Interpolator ()
 Destructor to allow inheritance.
 
void bind (const GridPDF *pdf)
 Bind to a GridPDF.
 
void unbind ()
 Unbind from GridPDF.
 
bool hasPDF ()
 Identify whether this Interpolator has an associated PDF.
 
const GridPDFpdf () const
 Get the associated GridPDF.
 
double interpolateXQ (int id, double x, double q) const
 Interpolate a single-point in (x,Q)
 
double interpolateXQ2 (int id, double x, double q2) const
 Interpolate a single-point in (x,Q2)
 

Additional Inherited Members

- Protected Member Functions inherited from LHAPDF::Interpolator

Detailed Description

Implementation of bicubic interpolation.

This class will interpolate in 2D using a bicubic hermite spline.

Member Function Documentation

◆ _interpolateXQ2()

double LHAPDF::BicubicInterpolator::_interpolateXQ2 ( const KnotArray1F subgrid,
double  x,
size_t  ix,
double  q2,
size_t  iq2 
) const
virtual

Interpolate a single-point in (x,Q2), given x/Q2 values and subgrid indices.

Todo:
Make an all-PID version of interpolateQ and Q2?

The key function to be overridden in derived classes: the subgrid and x/Q2 index lookup (and their caching) are done centrally in the Interpolator base class so do not need to be re-implemented in each flavour of interpolator.

Implements LHAPDF::Interpolator.


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