LHAPDF is hosted by Hepforge, IPPP Durham
LHAPDF  6.1.6
LHAPDF::BilinearInterpolator Class Reference

Implementation of bilinear interpolation. More...

#include <BilinearInterpolator.h>

Inheritance diagram for LHAPDF::BilinearInterpolator:

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 bilinear interpolation.

Member Function Documentation

double LHAPDF::BilinearInterpolator::_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.

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: