QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | List of all members
PiecewiseConstantVariance Class Referenceabstract

#include <piecewiseconstantvariance.hpp>

+ Inheritance diagram for PiecewiseConstantVariance:
+ Collaboration diagram for PiecewiseConstantVariance:

Public Member Functions

virtual ~PiecewiseConstantVariance ()=default
 
virtual const std::vector< Real > & variances () const =0
 
virtual const std::vector< Volatility > & volatilities () const =0
 
virtual const std::vector< Time > & rateTimes () const =0
 
Real variance (Size i) const
 
Volatility volatility (Size i) const
 
Real totalVariance (Size i) const
 
Volatility totalVolatility (Size i) const
 

Detailed Description

Definition at line 33 of file piecewiseconstantvariance.hpp.

Constructor & Destructor Documentation

◆ ~PiecewiseConstantVariance()

virtual ~PiecewiseConstantVariance ( )
virtualdefault

Member Function Documentation

◆ variances()

virtual const std::vector< Real > & variances ( ) const
pure virtual

Implemented in PiecewiseConstantAbcdVariance.

+ Here is the caller graph for this function:

◆ volatilities()

virtual const std::vector< Volatility > & volatilities ( ) const
pure virtual

Implemented in PiecewiseConstantAbcdVariance.

+ Here is the caller graph for this function:

◆ rateTimes()

virtual const std::vector< Time > & rateTimes ( ) const
pure virtual

Implemented in PiecewiseConstantAbcdVariance.

+ Here is the caller graph for this function:

◆ variance()

Real variance ( Size  i) const

Definition at line 28 of file piecewiseconstantvariance.cpp.

+ Here is the call graph for this function:

◆ volatility()

Volatility volatility ( Size  i) const

Definition at line 34 of file piecewiseconstantvariance.cpp.

+ Here is the call graph for this function:

◆ totalVariance()

Real totalVariance ( Size  i) const

Definition at line 40 of file piecewiseconstantvariance.cpp.

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

◆ totalVolatility()

Volatility totalVolatility ( Size  i) const

Definition at line 47 of file piecewiseconstantvariance.cpp.

+ Here is the call graph for this function: