LHAPDF  6.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
Public Member Functions | List of all members
LHAPDF::LogBicubicInterpolator Class Reference

Implementation of bicubic interpolation. More...

#include <LogBicubicInterpolator.h>

Inheritance diagram for LHAPDF::LogBicubicInterpolator:
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 GridPDF & pdf () 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)
 

Detailed Description

Implementation of bicubic interpolation.

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

Member Function Documentation

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