25#include <ql/math/interpolations/linearinterpolation.hpp>
26#include <ql/termstructure.hpp>
27#include <ql/time/calendars/nullcalendar.hpp>
28#include <ql/time/date.hpp>
40 const std::vector<QuantLib::Real>&
strikes,
const std::vector<QuantLib::Real>& prices,
42 const QuantLib::Calendar& calendar = QuantLib::NullCalendar())
48 QuantLib::Date
maxDate()
const override {
return QuantLib::Date::maxDate(); }
53 QuantLib::Real
price(QuantLib::Time t, QuantLib::Real strike)
const {
return getValue(t, strike); };
54 QuantLib::Real
price(QuantLib::Date d, QuantLib::Real strike)
const {
return getValue(d, strike); };
std::vector< std::vector< QuantLib::Real > > strikes() const
QuantLib::DayCounter dayCounter() const
QuantLib::Real getValue(QuantLib::Time t, QuantLib::Real strike) const override
const QuantLib::Date & referenceDate() const
QuantLib::DayCounter dayCounter() const override
QuantLib::Date maxDate() const override
QuantLib::Real price(QuantLib::Time t, QuantLib::Real strike) const
QuantLib::Real price(QuantLib::Date d, QuantLib::Real strike) const
OptionPriceSurface(const QuantLib::Date &referenceDate, const std::vector< QuantLib::Date > &dates, const std::vector< QuantLib::Real > &strikes, const std::vector< QuantLib::Real > &prices, const QuantLib::DayCounter &dayCounter, const QuantLib::Calendar &calendar=QuantLib::NullCalendar())
const QuantLib::Date & referenceDate() const override