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);
41 switch (
payoff->optionType()) {
102 Real pow_s = std::pow(
s, -lambda);
Analytic engine for continuous floating-strike lookback.
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 > &)
#define QL_REQUIRE(condition, message)
throw an error if the given pre-condition is not verified
#define QL_FAIL(message)
throw an error (possibly with file and line information)
Option exercise classes and payoff function.
@ NoFrequency
null frequency
Real Time
continuous quantity with 1-year units
Real DiscountFactor
discount factor between dates
Real Volatility
volatility
ext::shared_ptr< QuantLib::Payoff > payoff