32 {
33
34 QL_DEPRECATED_DISABLE_WARNING
35 bool interpolate =
arguments_.observationInterpolation == CPI::Linear ||
37 QL_DEPRECATED_ENABLE_WARNING
38
39 Real t = inflationYearFraction(
arguments_.index->frequency(), interpolate,
42
43 if (t <= 0.0) {
44
45
47 return;
48 }
49
50
51
55
63
65 Real discount =
model_->irlgm1f(irIdx)->termStructure()->discount(
arguments_.payDate);
66
67 results_.value = nTilde * blackFormula(
arguments_.type, kTilde, m, std::sqrt(v), discount);
68
69}
const Instrument::results * results_
Real integral(const CrossAssetModel &model, const E &e, const Real a, const Real b)
const P2_< E1, E2 > P(const E1 &e1, const E2 &e2)
Swap::arguments * arguments_