29 const std::vector<Time>& rateTimes,
30 const std::vector<Time>& paymentTimes,
31 std::vector<ext::shared_ptr<StrikedTypePayoff> > payoffs)
40 std::vector<Size>& numberCashFlowsThisStep,
41 std::vector<std::vector<MarketModelMultiProduct::CashFlow> >&
50 std::fill(numberCashFlowsThisStep.begin(),
51 numberCashFlowsThisStep.end(),0);
57 std::unique_ptr<MarketModelMultiProduct>
Curve state for market-model simulations
virtual Rate coterminalSwapAnnuity(Size numeraire, Size i) const =0
virtual Rate coterminalSwapRate(Size i) const =0
Multiple-step market-model product.
std::unique_ptr< MarketModelMultiProduct > clone() const override
returns a newly-allocated copy of itself
bool nextTimeStep(const CurveState ¤tState, std::vector< Size > &numberCashFlowsThisStep, std::vector< std::vector< CashFlow > > &cashFlowsGenerated) override
return value indicates whether path is finished, TRUE means done
std::vector< ext::shared_ptr< StrikedTypePayoff > > payoffs_
MultiStepCoterminalSwaptions(const std::vector< Time > &rateTimes, const std::vector< Time > &paymentTimes, std::vector< ext::shared_ptr< StrikedTypePayoff > >)
void checkIncreasingTimes(const std::vector< Time > ×)
check for strictly increasing times, first time greater than zero
Payoffs for various options.