QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FlatExtrapolator2D::FlatExtrapolator2DImpl Class Reference

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

+ Inheritance diagram for FlatExtrapolator2D::FlatExtrapolator2DImpl:
+ Collaboration diagram for FlatExtrapolator2D::FlatExtrapolator2DImpl:

Public Member Functions

 FlatExtrapolator2DImpl (ext::shared_ptr< Interpolation2D > decoratedInterpolation)
 
Real xMin () const override
 
Real xMax () const override
 
std::vector< RealxValues () const override
 
Size locateX (Real x) const override
 
Real yMin () const override
 
Real yMax () const override
 
std::vector< RealyValues () const override
 
Size locateY (Real y) const override
 
const MatrixzData () const override
 
bool isInRange (Real x, Real y) const override
 
void update ()
 
void calculate () override
 
Real value (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
 

Private Member Functions

Real bindX (Real x) const
 
Real bindY (Real y) const
 

Private Attributes

ext::shared_ptr< Interpolation2DdecoratedInterp_
 

Detailed Description

Definition at line 43 of file flatextrapolation2d.hpp.

Constructor & Destructor Documentation

◆ FlatExtrapolator2DImpl()

FlatExtrapolator2DImpl ( ext::shared_ptr< Interpolation2D decoratedInterpolation)

Definition at line 45 of file flatextrapolation2d.hpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ xMin()

Real xMin ( ) const
overridevirtual

Implements Interpolation2D::Impl.

Definition at line 49 of file flatextrapolation2d.hpp.

+ Here is the caller graph for this function:

◆ xMax()

Real xMax ( ) const
overridevirtual

Implements Interpolation2D::Impl.

Definition at line 50 of file flatextrapolation2d.hpp.

+ Here is the caller graph for this function:

◆ xValues()

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

Implements Interpolation2D::Impl.

Definition at line 51 of file flatextrapolation2d.hpp.

◆ locateX()

Size locateX ( Real  x) const
overridevirtual

Implements Interpolation2D::Impl.

Definition at line 52 of file flatextrapolation2d.hpp.

◆ yMin()

Real yMin ( ) const
overridevirtual

Implements Interpolation2D::Impl.

Definition at line 53 of file flatextrapolation2d.hpp.

+ Here is the caller graph for this function:

◆ yMax()

Real yMax ( ) const
overridevirtual

Implements Interpolation2D::Impl.

Definition at line 54 of file flatextrapolation2d.hpp.

+ Here is the caller graph for this function:

◆ yValues()

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

Implements Interpolation2D::Impl.

Definition at line 55 of file flatextrapolation2d.hpp.

◆ locateY()

Size locateY ( Real  y) const
overridevirtual

Implements Interpolation2D::Impl.

Definition at line 56 of file flatextrapolation2d.hpp.

◆ zData()

const Matrix & zData ( ) const
overridevirtual

Implements Interpolation2D::Impl.

Definition at line 57 of file flatextrapolation2d.hpp.

◆ isInRange()

bool isInRange ( Real  x,
Real  y 
) const
overridevirtual

Implements Interpolation2D::Impl.

Definition at line 58 of file flatextrapolation2d.hpp.

◆ update()

void update ( )

Definition at line 61 of file flatextrapolation2d.hpp.

◆ calculate()

void calculate ( )
overridevirtual

Implements Interpolation2D::Impl.

Definition at line 64 of file flatextrapolation2d.hpp.

+ Here is the caller graph for this function:

◆ value()

Real value ( Real  x,
Real  y 
) const
overridevirtual

Implements Interpolation2D::Impl.

Definition at line 65 of file flatextrapolation2d.hpp.

+ Here is the call graph for this function:

◆ bindX()

Real bindX ( Real  x) const
private

Definition at line 74 of file flatextrapolation2d.hpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bindY()

Real bindY ( Real  y) const
private

Definition at line 81 of file flatextrapolation2d.hpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ decoratedInterp_

ext::shared_ptr<Interpolation2D> decoratedInterp_
private

Definition at line 72 of file flatextrapolation2d.hpp.