24#ifndef quantext_stripped_optionlet_adapter2_h
25#define quantext_stripped_optionlet_adapter2_h
27#include <ql/math/interpolation.hpp>
28#include <ql/math/interpolations/sabrinterpolation.hpp>
29#include <ql/termstructures/volatility/optionlet/optionletstripper.hpp>
30#include <ql/termstructures/volatility/optionlet/optionletvolatilitystructure.hpp>
31#include <ql/termstructures/volatility/optionlet/strippedoptionletbase.hpp>
42 const bool flatExtrapolation =
false);
46 QuantLib::Date
maxDate()
const override;
50 QuantLib::Rate
minStrike()
const override;
51 QuantLib::Rate
maxStrike()
const override;
65 QuantLib::ext::shared_ptr<QuantLib::SmileSection>
smileSectionImpl(QuantLib::Time optionTime)
const override;
67 QuantLib::Volatility
volatilityImpl(QuantLib::Time length, QuantLib::Rate strike)
const override;
78 TermStructure::update();
83 return QuantLib::ext::dynamic_pointer_cast<QuantLib::OptionletStripper>(
optionletStripper_);
QuantLib::Volatility volatilityImpl(QuantLib::Time length, QuantLib::Rate strike) const override
void performCalculations() const override
QuantLib::Rate maxStrike() const override
QuantLib::Rate minStrike() const override
QuantLib::ext::shared_ptr< QuantLib::SmileSection > smileSectionImpl(QuantLib::Time optionTime) const override
QuantLib::VolatilityType volatilityType() const override
QuantLib::Size nInterpolations_
QuantLib::Date maxDate() const override
const QuantLib::ext::shared_ptr< QuantLib::StrippedOptionletBase > optionletStripper_
const bool flatExtrapolation_
QuantLib::Real displacement() const override
std::vector< QuantLib::ext::shared_ptr< QuantLib::Interpolation > > strikeInterpolations_
QuantLib::ext::shared_ptr< QuantLib::OptionletStripper > optionletStripper() const