QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
caplet volatility model More...
#include <lmvolmodel.hpp>
Public Member Functions | |
LmVolatilityModel (Size size, Size nArguments) | |
virtual | ~LmVolatilityModel ()=default |
Size | size () const |
std::vector< Parameter > & | params () |
void | setParams (const std::vector< Parameter > &arguments) |
virtual Array | volatility (Time t, const Array &x=Null< Array >()) const =0 |
virtual Volatility | volatility (Size i, Time t, const Array &x=Null< Array >()) const |
virtual Real | integratedVariance (Size i, Size j, Time u, const Array &x=Null< Array >()) const |
Protected Attributes | |
const Size | size_ |
std::vector< Parameter > | arguments_ |
Private Member Functions | |
virtual void | generateArguments ()=0 |
caplet volatility model
Definition at line 33 of file lmvolmodel.hpp.
LmVolatilityModel | ( | Size | size, |
Size | nArguments | ||
) |
Definition at line 24 of file lmvolmodel.cpp.
|
virtualdefault |
Size size | ( | ) | const |
Definition at line 29 of file lmvolmodel.cpp.
std::vector< Parameter > & params | ( | ) |
Definition at line 44 of file lmvolmodel.cpp.
void setParams | ( | const std::vector< Parameter > & | arguments | ) |
Implemented in LmConstWrapperVolatilityModel, LmExtLinearExponentialVolModel, LmFixedVolatilityModel, LmLinearExponentialVolatilityModel, and LmConstWrapperVolatilityModel.
Reimplemented in LmFixedVolatilityModel, LmConstWrapperVolatilityModel, LmExtLinearExponentialVolModel, and LmLinearExponentialVolatilityModel.
Definition at line 33 of file lmvolmodel.cpp.
Reimplemented in LmConstWrapperVolatilityModel, LmExtLinearExponentialVolModel, and LmLinearExponentialVolatilityModel.
Definition at line 39 of file lmvolmodel.cpp.
|
privatepure virtual |
Implemented in LmConstWrapperVolatilityModel, LmFixedVolatilityModel, and LmLinearExponentialVolatilityModel.
|
protected |
Definition at line 49 of file lmvolmodel.hpp.
|
protected |
Definition at line 50 of file lmvolmodel.hpp.