QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Interpolation2D::templateImpl< I1, I2, M > Class Template Reference

basic template implementation More...

#include <ql/math/interpolations/interpolation2d.hpp>

+ Inheritance diagram for Interpolation2D::templateImpl< I1, I2, M >:
+ Collaboration diagram for Interpolation2D::templateImpl< I1, I2, M >:

Public Member Functions

 templateImpl (const I1 &xBegin, const I1 &xEnd, const I2 &yBegin, const I2 &yEnd, const M &zData)
 
Real xMin () const override
 
Real xMax () const override
 
std::vector< RealxValues () const override
 
Real yMin () const override
 
Real yMax () const override
 
std::vector< RealyValues () const override
 
const MatrixzData () const override
 
bool isInRange (Real x, Real y) const override
 
- Public Member Functions inherited from Interpolation2D::Impl
virtual ~Impl ()=default
 
virtual void calculate ()=0
 
virtual Real xMin () const =0
 
virtual Real xMax () const =0
 
virtual std::vector< RealxValues () const =0
 
virtual Size locateX (Real x) const =0
 
virtual Real yMin () const =0
 
virtual Real yMax () const =0
 
virtual std::vector< RealyValues () const =0
 
virtual Size locateY (Real y) const =0
 
virtual const MatrixzData () const =0
 
virtual bool isInRange (Real x, Real y) const =0
 
virtual Real value (Real x, Real y) const =0
 

Protected Member Functions

Size locateX (Real x) const override
 
Size locateY (Real y) const override
 

Protected Attributes

I1 xBegin_
 
I1 xEnd_
 
I2 yBegin_
 
I2 yEnd_
 
const M & zData_
 

Detailed Description

template<class I1, class I2, class M>
class QuantLib::Interpolation2D::templateImpl< I1, I2, M >

basic template implementation

Definition at line 87 of file interpolation2d.hpp.

Constructor & Destructor Documentation

◆ templateImpl()

templateImpl ( const I1 &  xBegin,
const I1 &  xEnd,
const I2 &  yBegin,
const I2 &  yEnd,
const M &  zData 
)

Definition at line 89 of file interpolation2d.hpp.

Member Function Documentation

◆ xMin()

Real xMin ( ) const
overridevirtual

Implements Interpolation2D::Impl.

Definition at line 101 of file interpolation2d.hpp.

+ Here is the caller graph for this function:

◆ xMax()

Real xMax ( ) const
overridevirtual

Implements Interpolation2D::Impl.

Definition at line 102 of file interpolation2d.hpp.

+ Here is the caller graph for this function:

◆ xValues()

std::vector< Real > xValues ( ) const
overridevirtual

Implements Interpolation2D::Impl.

Definition at line 103 of file interpolation2d.hpp.

◆ yMin()

Real yMin ( ) const
overridevirtual

Implements Interpolation2D::Impl.

Definition at line 104 of file interpolation2d.hpp.

+ Here is the caller graph for this function:

◆ yMax()

Real yMax ( ) const
overridevirtual

Implements Interpolation2D::Impl.

Definition at line 105 of file interpolation2d.hpp.

+ Here is the caller graph for this function:

◆ yValues()

std::vector< Real > yValues ( ) const
overridevirtual

Implements Interpolation2D::Impl.

Definition at line 106 of file interpolation2d.hpp.

◆ zData()

const Matrix & zData ( ) const
overridevirtual

Implements Interpolation2D::Impl.

Definition at line 107 of file interpolation2d.hpp.

+ Here is the caller graph for this function:

◆ isInRange()

bool isInRange ( Real  x,
Real  y 
) const
overridevirtual

Implements Interpolation2D::Impl.

Definition at line 108 of file interpolation2d.hpp.

+ Here is the call graph for this function:

◆ locateX()

Size locateX ( Real  x) const
overrideprotectedvirtual

Implements Interpolation2D::Impl.

Definition at line 128 of file interpolation2d.hpp.

+ Here is the caller graph for this function:

◆ locateY()

Size locateY ( Real  y) const
overrideprotectedvirtual

Implements Interpolation2D::Impl.

Definition at line 140 of file interpolation2d.hpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ xBegin_

I1 xBegin_
protected

Definition at line 152 of file interpolation2d.hpp.

◆ xEnd_

I1 xEnd_
protected

Definition at line 152 of file interpolation2d.hpp.

◆ yBegin_

I2 yBegin_
protected

Definition at line 153 of file interpolation2d.hpp.

◆ yEnd_

I2 yEnd_
protected

Definition at line 153 of file interpolation2d.hpp.

◆ zData_

const M& zData_
protected

Definition at line 154 of file interpolation2d.hpp.