25#ifndef quantlib_black_variance_curve_hpp
26#define quantlib_black_variance_curve_hpp
50 const std::vector<Date>& dates,
51 const std::vector<Volatility>& blackVolCurve,
53 bool forceMonotoneVariance =
true);
66 template <
class Interpolator>
Black volatility term structure base classes.
degenerate base class for the Acyclic Visitor pattern
Black volatility curve modelled as variance curve.
std::vector< Real > variances_
Real minStrike() const override
the minimum strike for which the term structure can return vols
std::vector< Time > times_
void accept(AcyclicVisitor &) override
DayCounter dayCounter() const override
the day counter used for date/time conversion
void setInterpolation(const Interpolator &i=Interpolator())
Date maxDate() const override
the latest date for which the curve can return values
Interpolation varianceCurve_
Real blackVarianceImpl(Time t, Real) const override
Black variance calculation.
Real maxStrike() const override
the maximum strike for which the term structure can return vols
Black variance term structure.
void accept(AcyclicVisitor &) override
base class for 1-D interpolations.
virtual const Date & referenceDate() const
the date at which discount = 1.0 and/or variance = 0.0
Visitor for a specific class
virtual void visit(T &)=0
Real Time
continuous quantity with 1-year units
base class for 1-D interpolations
ext::shared_ptr< BlackVolTermStructure > v