|
QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.38
|
#include <alphafinder.hpp>
Collaboration diagram for AlphaFinder:Public Member Functions | |
| AlphaFinder (ext::shared_ptr< AlphaForm > parametricform) | |
| bool | solve (Real alpha0, Integer stepindex, const std::vector< Volatility > &rateonevols, const std::vector< Volatility > &ratetwohomogeneousvols, const std::vector< Real > &correlations, Real w0, Real w1, Real targetVariance, Real tolerance, Real alphaMax, Real alphaMin, Integer steps, Real &alpha, Real &a, Real &b, std::vector< Volatility > &ratetwovols) |
| bool | solveWithMaxHomogeneity (Real alpha0, Integer stepindex, const std::vector< Volatility > &rateonevols, const std::vector< Volatility > &ratetwohomogeneousvols, const std::vector< Real > &correlations, Real w0, Real w1, Real targetVariance, Real tolerance, Real alphaMax, Real alphaMin, Integer steps, Real &alpha, Real &a, Real &b, std::vector< Volatility > &ratetwovols) |
Private Member Functions | |
| Real | computeLinearPart (Real alpha) |
| Real | computeQuadraticPart (Real alpha) |
| Real | valueAtTurningPoint (Real alpha) |
| Real | minusValueAtTurningPoint (Real alpha) |
| bool | testIfSolutionExists (Real alpha) |
| bool | finalPart (Real alphaFound, Integer stepindex, const std::vector< Volatility > &ratetwohomogeneousvols, Real quadraticPart, Real linearPart, Real constantPart, Real &alpha, Real &a, Real &b, std::vector< Volatility > &ratetwovols) |
| Real | homogeneityfailure (Real alpha) |
Private Attributes | |
| ext::shared_ptr< AlphaForm > | parametricform_ |
| Integer | stepindex_ |
| std::vector< Volatility > | rateonevols_ |
| std::vector< Volatility > | ratetwohomogeneousvols_ |
| std::vector< Volatility > | putativevols_ |
| std::vector< Real > | correlations_ |
| Real | w0_ |
| Real | w1_ |
| Real | constantPart_ |
| Real | linearPart_ |
| Real | quadraticPart_ |
| Real | totalVar_ |
| Real | targetVariance_ |
Definition at line 29 of file alphafinder.hpp.
| AlphaFinder | ( | ext::shared_ptr< AlphaForm > | parametricform | ) |
Definition at line 179 of file alphafinder.cpp.
| bool solve | ( | Real | alpha0, |
| Integer | stepindex, | ||
| const std::vector< Volatility > & | rateonevols, | ||
| const std::vector< Volatility > & | ratetwohomogeneousvols, | ||
| const std::vector< Real > & | correlations, | ||
| Real | w0, | ||
| Real | w1, | ||
| Real | targetVariance, | ||
| Real | tolerance, | ||
| Real | alphaMax, | ||
| Real | alphaMin, | ||
| Integer | steps, | ||
| Real & | alpha, | ||
| Real & | a, | ||
| Real & | b, | ||
| std::vector< Volatility > & | ratetwovols | ||
| ) |
Definition at line 297 of file alphafinder.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool solveWithMaxHomogeneity | ( | Real | alpha0, |
| Integer | stepindex, | ||
| const std::vector< Volatility > & | rateonevols, | ||
| const std::vector< Volatility > & | ratetwohomogeneousvols, | ||
| const std::vector< Real > & | correlations, | ||
| Real | w0, | ||
| Real | w1, | ||
| Real | targetVariance, | ||
| Real | tolerance, | ||
| Real | alphaMax, | ||
| Real | alphaMin, | ||
| Integer | steps, | ||
| Real & | alpha, | ||
| Real & | a, | ||
| Real & | b, | ||
| std::vector< Volatility > & | ratetwovols | ||
| ) |
Definition at line 418 of file alphafinder.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 265 of file alphafinder.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 275 of file alphafinder.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 279 of file alphafinder.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 232 of file alphafinder.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 210 of file alphafinder.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 84 of file alphafinder.hpp.
|
private |
Definition at line 85 of file alphafinder.hpp.
|
private |
Definition at line 86 of file alphafinder.hpp.
|
private |
Definition at line 86 of file alphafinder.hpp.
|
private |
Definition at line 87 of file alphafinder.hpp.
|
private |
Definition at line 88 of file alphafinder.hpp.
|
private |
Definition at line 89 of file alphafinder.hpp.
|
private |
Definition at line 89 of file alphafinder.hpp.
|
private |
Definition at line 90 of file alphafinder.hpp.
|
private |
Definition at line 90 of file alphafinder.hpp.
|
private |
Definition at line 90 of file alphafinder.hpp.
|
private |
Definition at line 91 of file alphafinder.hpp.
|
private |
Definition at line 91 of file alphafinder.hpp.