flatVolatility.hpp
Go to the documentation of this file.
FlatVolatility * clone() const override
Virtual copy constructor.
Definition: flatVolatility.cpp:53
double getVariance(double K, Date T) const override
Returns annualize variance.
Definition: flatVolatility.cpp:25
Definition: cadHoliday.cpp:3
std::string info() const override
Returns type of volatility surface.
Definition: flatVolatility.cpp:59
double volatility_
volatility level
Definition: flatVolatility.hpp:46
SmartPointer< YearFraction > yf_
Year fraction convention.
Definition: flatVolatility.hpp:47
File contains interface for volatility surface.
double getVolatility(double K, Date T) const override
Returns volatility. The same value is returned regardless of the given arguments. ...
Definition: flatVolatility.cpp:11
Date getDate() const override
Returns the date for which curve was defined.
Definition: flatVolatility.cpp:47
void bumpVolatility(double) override
Shifts volatility by bump size provided.
Definition: flatVolatility.cpp:41
double getYearFraction(Date, Date) const override
Calculates year fraction.
Definition: flatVolatility.cpp:68
Date date_
represent the date on which the curve is valid
Definition: flatVolatility.hpp:45
FlatVolatility(Date date, double volatility, SmartPointer< YearFraction > yf)
constructor
Definition: flatVolatility.hpp:27
friend std::ostream & operator<<(std::ostream &, FlatVolatility &)
Overloads stream operator.
Definition: flatVolatility.cpp:76