21#include <ql/exercise.hpp>
22#include <ql/pricingengines/lookback/analyticcontinuousfloatinglookback.hpp>
28 ext::shared_ptr<GeneralizedBlackScholesProcess> process)
29 : process_(
std::move(process)) {
35 ext::shared_ptr<FloatingTypePayoff> payoff =
36 ext::dynamic_pointer_cast<FloatingTypePayoff>(
arguments_.payoff);
37 QL_REQUIRE(payoff,
"Non-floating payoff given");
39 QL_REQUIRE(
process_->x0() > 0.0,
"negative or null underlying");
41 switch (payoff->optionType()) {
49 QL_FAIL(
"Unknown type");
102 Real pow_s = std::pow(s, -lambda);
CumulativeNormalDistribution f_
Time residualTime() const
Volatility volatility() const
DiscountFactor dividendDiscount() const
AnalyticContinuousFloatingLookbackEngine(ext::shared_ptr< GeneralizedBlackScholesProcess > process)
void calculate() const override
Real stdDeviation() const
Rate riskFreeRate() const
ext::shared_ptr< GeneralizedBlackScholesProcess > process_
Rate dividendYield() const
DiscountFactor riskFreeDiscount() const
ContinuousFloatingLookbackOption::results results_
ContinuousFloatingLookbackOption::arguments arguments_
std::pair< iterator, bool > registerWith(const ext::shared_ptr< Observable > &)
@ NoFrequency
null frequency
Real Time
continuous quantity with 1-year units
Real DiscountFactor
discount factor between dates
Real Volatility
volatility