25#ifndef quantlib_local_vol_rnd_calculator_hpp
26#define quantlib_local_vol_rnd_calculator_hpp
41 class LocalVolTermStructure;
47 ext::shared_ptr<YieldTermStructure> rTS,
48 ext::shared_ptr<YieldTermStructure> qTS,
49 const ext::shared_ptr<LocalVolTermStructure>& localVol,
53 Real localVolProbEps = 1e-6,
58 ext::shared_ptr<YieldTermStructure> rTS,
59 ext::shared_ptr<YieldTermStructure> qTS,
60 ext::shared_ptr<LocalVolTermStructure> localVol,
61 const ext::shared_ptr<TimeGrid>&
timeGrid,
72 ext::shared_ptr<TimeGrid>
timeGrid()
const;
89 const ext::shared_ptr<Quote>
spot_;
90 const ext::shared_ptr<LocalVolTermStructure>
localVol_;
91 const ext::shared_ptr<YieldTermStructure>
rTS_;
92 const ext::shared_ptr<YieldTermStructure>
qTS_;
94 mutable std::vector<ext::shared_ptr<Fdm1dMesher> >
xm_;
95 const ext::shared_ptr<Matrix>
pm_;
97 mutable std::vector<ext::shared_ptr<Interpolation> >
pFct_;
1-D array used in linear algebra.
Framework for calculation on demand and result caching.
void performCalculations() const override
std::vector< ext::shared_ptr< Interpolation > > pFct_
const ext::shared_ptr< Quote > spot_
std::vector< Size > rescaleTimeSteps_
Array rescalePDF(const Array &x, const Array &p) const
const Real localVolProbEps_
const ext::shared_ptr< YieldTermStructure > qTS_
std::vector< Size > rescaleTimeSteps() const
ext::shared_ptr< TimeGrid > timeGrid() const
const Time gaussianStepSize_
Real pdf(Real x, Time t) const override
Real cdf(Real x, Time t) const override
const ext::shared_ptr< YieldTermStructure > rTS_
const ext::shared_ptr< TimeGrid > timeGrid_
const ext::shared_ptr< Matrix > pm_
ext::shared_ptr< Fdm1dMesher > mesher(Time t) const
std::vector< ext::shared_ptr< Fdm1dMesher > > xm_
Real invcdf(Real p, Time t) const override
Real probabilityInterpolation(Size idx, Real x) const
const ext::shared_ptr< LocalVolTermStructure > localVol_
template class providing a null value for a given type.
One-dimensional simple FDM mesher object working on an index.
Real Time
continuous quantity with 1-year units
std::size_t Size
size of a container
framework for calculation on demand and result caching
matrix used in linear algebra.
interface for a single asset risk neutral terminal density calculation
Interest-rate term structure.