#include <alphafinder.hpp>
|
| 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) |
|
Definition at line 29 of file alphafinder.hpp.
◆ AlphaFinder()
◆ solve()
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 |
|
) |
| |
◆ solveWithMaxHomogeneity()
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 |
|
) |
| |
◆ computeLinearPart()
◆ computeQuadraticPart()
◆ valueAtTurningPoint()
◆ minusValueAtTurningPoint()
Real minusValueAtTurningPoint |
( |
Real |
alpha | ) |
|
|
private |
◆ testIfSolutionExists()
◆ finalPart()
◆ homogeneityfailure()
◆ parametricform_
◆ stepindex_
◆ rateonevols_
◆ ratetwohomogeneousvols_
◆ putativevols_
◆ correlations_
std::vector<Real> correlations_ |
|
private |
◆ w0_
◆ w1_
◆ constantPart_
◆ linearPart_
◆ quadraticPart_
◆ totalVar_
◆ targetVariance_