QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Drift computation for coterminal swap market models. More...
#include <smmdriftcalculator.hpp>
Public Member Functions | |
SMMDriftCalculator (const Matrix &pseudo, const std::vector< Spread > &displacements, const std::vector< Time > &taus, Size numeraire, Size alive) | |
void | compute (const CoterminalSwapCurveState &cs, std::vector< Real > &drifts) const |
Computes the drifts. More... | |
Private Attributes | |
Size | numberOfRates_ |
Size | numberOfFactors_ |
Size | numeraire_ |
Size | alive_ |
std::vector< Spread > | displacements_ |
std::vector< Real > | oneOverTaus_ |
Matrix | C_ |
Matrix | pseudo_ |
std::vector< Real > | tmp_ |
Matrix | wkaj_ |
Matrix | wkpj_ |
Matrix | wkajshifted_ |
Drift computation for coterminal swap market models.
Returns the drift \( \mu \Delta t \). See Mark Joshi, Lorenzo Liesch, Effective Implementation Of Generic Market Models.
Definition at line 40 of file smmdriftcalculator.hpp.
void compute | ( | const CoterminalSwapCurveState & | cs, |
std::vector< Real > & | drifts | ||
) | const |
Computes the drifts.
Definition at line 71 of file smmdriftcalculator.cpp.
|
private |
Definition at line 51 of file smmdriftcalculator.hpp.
|
private |
Definition at line 51 of file smmdriftcalculator.hpp.
|
private |
Definition at line 52 of file smmdriftcalculator.hpp.
|
private |
Definition at line 52 of file smmdriftcalculator.hpp.
|
private |
Definition at line 53 of file smmdriftcalculator.hpp.
|
private |
Definition at line 54 of file smmdriftcalculator.hpp.
|
private |
Definition at line 55 of file smmdriftcalculator.hpp.
|
private |
Definition at line 55 of file smmdriftcalculator.hpp.
|
mutableprivate |
Definition at line 57 of file smmdriftcalculator.hpp.
|
mutableprivate |
Definition at line 58 of file smmdriftcalculator.hpp.
|
mutableprivate |
Definition at line 59 of file smmdriftcalculator.hpp.
|
mutableprivate |
Definition at line 60 of file smmdriftcalculator.hpp.