Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ConstantInterpolation::ConstantInterpolationImpl Struct Reference
+ Inheritance diagram for ConstantInterpolation::ConstantInterpolationImpl:
+ Collaboration diagram for ConstantInterpolation::ConstantInterpolationImpl:

Public Member Functions

 ConstantInterpolationImpl (const Real &y)
 
void update () override
 
Real xMin () const override
 
Real xMax () const override
 
std::vector< Real > xValues () const override
 
std::vector< Real > yValues () const override
 
bool isInRange (Real) const override
 
Real value (Real) const override
 
Real primitive (Real x) const override
 
Real derivative (Real) const override
 
Real secondDerivative (Real) const override
 

Public Attributes

const Real & y_
 

Detailed Description

Definition at line 42 of file constantinterpolation.hpp.

Constructor & Destructor Documentation

◆ ConstantInterpolationImpl()

ConstantInterpolationImpl ( const Real &  y)

Member Function Documentation

◆ update()

void update ( )
override

Definition at line 44 of file constantinterpolation.hpp.

44{}

◆ xMin()

Real xMin ( ) const
override

Definition at line 45 of file constantinterpolation.hpp.

45{ return -QL_MAX_REAL; }

◆ xMax()

Real xMax ( ) const
override

Definition at line 46 of file constantinterpolation.hpp.

46{ return QL_MAX_REAL; }

◆ xValues()

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

Definition at line 47 of file constantinterpolation.hpp.

47{ return std::vector<Real>(1, 0.0); }

◆ yValues()

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

Definition at line 48 of file constantinterpolation.hpp.

48{ return std::vector<Real>(1, y_); }

◆ isInRange()

bool isInRange ( Real  ) const
override

Definition at line 49 of file constantinterpolation.hpp.

49{ return true; }

◆ value()

Real value ( Real  ) const
override

Definition at line 50 of file constantinterpolation.hpp.

50{ return y_; }

◆ primitive()

Real primitive ( Real  x) const
override

Definition at line 51 of file constantinterpolation.hpp.

51{ return y_ * x; }

◆ derivative()

Real derivative ( Real  ) const
override

Definition at line 52 of file constantinterpolation.hpp.

52{ return 0.0; }

◆ secondDerivative()

Real secondDerivative ( Real  ) const
override

Definition at line 53 of file constantinterpolation.hpp.

53{ return 0.0; }

Member Data Documentation

◆ y_

const Real& y_

Definition at line 55 of file constantinterpolation.hpp.