QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
#include <piecewiseconstantabcdvariance.hpp>
Public Member Functions | |
PiecewiseConstantAbcdVariance (Real a, Real b, Real c, Real d, Size resetIndex, const std::vector< Time > &rateTimes) | |
const std::vector< Real > & | variances () const override |
const std::vector< Real > & | volatilities () const override |
const std::vector< Time > & | rateTimes () const override |
void | getABCD (Real &a, Real &b, Real &c, Real &d) const |
Public Member Functions inherited from PiecewiseConstantVariance | |
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 |
Private Attributes | |
std::vector< Real > | variances_ |
std::vector< Real > | volatilities_ |
std::vector< Time > | rateTimes_ |
Real | a_ |
Real | b_ |
Real | c_ |
Real | d_ |
Definition at line 30 of file piecewiseconstantabcdvariance.hpp.
PiecewiseConstantAbcdVariance | ( | Real | a, |
Real | b, | ||
Real | c, | ||
Real | d, | ||
Size | resetIndex, | ||
const std::vector< Time > & | rateTimes | ||
) |
Definition at line 27 of file piecewiseconstantabcdvariance.cpp.
|
overridevirtual |
Implements PiecewiseConstantVariance.
Definition at line 71 of file piecewiseconstantabcdvariance.cpp.
|
overridevirtual |
Implements PiecewiseConstantVariance.
Definition at line 76 of file piecewiseconstantabcdvariance.cpp.
|
overridevirtual |
Implements PiecewiseConstantVariance.
Definition at line 67 of file piecewiseconstantabcdvariance.cpp.
Definition at line 59 of file piecewiseconstantabcdvariance.cpp.
|
private |
Definition at line 40 of file piecewiseconstantabcdvariance.hpp.
|
private |
Definition at line 41 of file piecewiseconstantabcdvariance.hpp.
|
private |
Definition at line 42 of file piecewiseconstantabcdvariance.hpp.
|
private |
Definition at line 43 of file piecewiseconstantabcdvariance.hpp.
|
private |
Definition at line 44 of file piecewiseconstantabcdvariance.hpp.
|
private |
Definition at line 45 of file piecewiseconstantabcdvariance.hpp.
|
private |
Definition at line 46 of file piecewiseconstantabcdvariance.hpp.