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

basic template implementation More...

#include <interpolation.hpp>

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

Public Member Functions

 templateImpl (const I1 &xBegin, const I1 &xEnd, const I2 &yBegin, const int requiredPoints=2)
 
Real xMin () const override
 
Real xMax () const override
 
std::vector< RealxValues () const override
 
std::vector< RealyValues () const override
 
bool isInRange (Real x) const override
 
- Public Member Functions inherited from Interpolation::Impl
virtual ~Impl ()=default
 
virtual void update ()=0
 
virtual Real xMin () const =0
 
virtual Real xMax () const =0
 
virtual std::vector< RealxValues () const =0
 
virtual std::vector< RealyValues () const =0
 
virtual bool isInRange (Real) const =0
 
virtual Real value (Real) const =0
 
virtual Real primitive (Real) const =0
 
virtual Real derivative (Real) const =0
 
virtual Real secondDerivative (Real) const =0
 

Protected Member Functions

Size locate (Real x) const
 

Protected Attributes

I1 xBegin_
 
I1 xEnd_
 
I2 yBegin_
 

Detailed Description

template<class I1, class I2>
class QuantLib::Interpolation::templateImpl< I1, I2 >

basic template implementation

Definition at line 76 of file interpolation.hpp.

Constructor & Destructor Documentation

◆ templateImpl()

templateImpl ( const I1 &  xBegin,
const I1 &  xEnd,
const I2 &  yBegin,
const int  requiredPoints = 2 
)

Definition at line 78 of file interpolation.hpp.

Member Function Documentation

◆ xMin()

Real xMin ( ) const
overridevirtual

Implements Interpolation::Impl.

Definition at line 86 of file interpolation.hpp.

+ Here is the caller graph for this function:

◆ xMax()

Real xMax ( ) const
overridevirtual

Implements Interpolation::Impl.

Definition at line 87 of file interpolation.hpp.

+ Here is the caller graph for this function:

◆ xValues()

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

Implements Interpolation::Impl.

Definition at line 88 of file interpolation.hpp.

◆ yValues()

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

Implements Interpolation::Impl.

Definition at line 89 of file interpolation.hpp.

◆ isInRange()

bool isInRange ( Real  x) const
overridevirtual

Implements Interpolation::Impl.

Definition at line 92 of file interpolation.hpp.

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

◆ locate()

Size locate ( Real  x) const
protected

Definition at line 102 of file interpolation.hpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ xBegin_

I1 xBegin_
protected

Definition at line 114 of file interpolation.hpp.

◆ xEnd_

I1 xEnd_
protected

Definition at line 114 of file interpolation.hpp.

◆ yBegin_

I2 yBegin_
protected

Definition at line 115 of file interpolation.hpp.