20#ifndef quantlib_alpha_finder_hpp
21#define quantlib_alpha_finder_hpp
31 AlphaFinder(ext::shared_ptr<AlphaForm> parametricform);
35 const std::vector<Volatility>& rateonevols,
36 const std::vector<Volatility>& ratetwohomogeneousvols,
37 const std::vector<Real>& correlations,
48 std::vector<Volatility>& ratetwovols);
53 const std::vector<Volatility>& rateonevols,
54 const std::vector<Volatility>& ratetwohomogeneousvols,
55 const std::vector<Real>& correlations,
66 std::vector<Volatility>& ratetwovols);
75 const std::vector<Volatility>& ratetwohomogeneousvols,
82 std::vector<Volatility>& ratetwovols);
Real minusValueAtTurningPoint(Real alpha)
Real homogeneityfailure(Real alpha)
std::vector< Volatility > ratetwohomogeneousvols_
bool testIfSolutionExists(Real alpha)
Real valueAtTurningPoint(Real alpha)
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)
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)
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)
ext::shared_ptr< AlphaForm > parametricform_
Real computeQuadraticPart(Real alpha)
std::vector< Volatility > rateonevols_
std::vector< Real > correlations_
Real computeLinearPart(Real alpha)
std::vector< Volatility > putativevols_
ext::function< Real(Real)> b
QL_INTEGER Integer
integer number
Maps shared_ptr to either the boost or std implementation.