SysTutorials

Linux Manual Pages › Section 3

zdata(3)

QuantLib::Interpolation2D – base class for 2-D interpolations.

Synopsis

Real operator() (Real x, Real y, bool allowExtrapolation=false) const
Real xMin () const
Real xMax () const
std::vector< Real > xValues () const
Size locateX (Real x) const
Real yMin () const
Real yMax () const
std::vector< Real > yValues () const
Size locateY (Real y) const
const Matrix & zData () const
bool isInRange (Real x, Real y) const
void update ()
Protected Member Functions
void checkRange (Real x, Real y, bool extrapolate) const
Protected Attributes

Inherits QuantLib::Extrapolator. Inherited by BicubicSpline, BilinearInterpolation, and FlatExtrapolator2D.

Classes

class Impl
abstract base class for 2-D interpolation implementations
class templateImpl
basic template implementation

Public Types

typedef Real first_argument_type

typedef Real second_argument_type

typedef Real result_type

Public Member Functions

Real operator() (Real x, Real y, bool allowExtrapolation=false) const
Real xMin () const
Real xMax () const
std::vector< Real > xValues () const
Size locateX (Real x) const
Real yMin () const
Real yMax () const
std::vector< Real > yValues () const
Size locateY (Real y) const
const Matrix & zData () const
bool isInRange (Real x, Real y) const
void update ()
Protected Member Functions
void checkRange (Real x, Real y, bool extrapolate) const
Protected Attributes

boost::shared_ptr< Impl > impl_

Detailed Description

base class for 2-D interpolations.

Classes derived from this class will provide interpolated values from two sequences of length $ N $ and $ M $, representing the discretized values of the $ x $ and $ y $ variables, and a $ N imes M $ matrix representing the tabulated function values.

Author

Generated automatically by Doxygen for QuantLib from the source code.