QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
MarketModelPathwiseMultiDeflatedCaplet Class Reference

#include <ql/models/marketmodels/products/pathwise/pathwiseproductcaplet.hpp>

+ Inheritance diagram for MarketModelPathwiseMultiDeflatedCaplet:
+ Collaboration diagram for MarketModelPathwiseMultiDeflatedCaplet:

Public Member Functions

 MarketModelPathwiseMultiDeflatedCaplet (const std::vector< Time > &rateTimes, const std::vector< Real > &accruals, const std::vector< Time > &paymentTimes, const std::vector< Rate > &strikes)
 
 MarketModelPathwiseMultiDeflatedCaplet (const std::vector< Time > &rateTimes, const std::vector< Real > &accruals, const std::vector< Time > &paymentTimes, Rate strike)
 
 ~MarketModelPathwiseMultiDeflatedCaplet () override=default
 
std::vector< SizesuggestedNumeraires () const override
 
const EvolutionDescriptionevolution () const override
 
std::vector< TimepossibleCashFlowTimes () const override
 
Size numberOfProducts () const override
 
Size maxNumberOfCashFlowsPerProductPerStep () const override
 
bool alreadyDeflated () const override
 
void reset () override
 during simulation put product at start of path More...
 
bool nextTimeStep (const CurveState &currentState, std::vector< Size > &numberCashFlowsThisStep, std::vector< std::vector< MarketModelPathwiseMultiProduct::CashFlow > > &cashFlowsGenerated) override
 return value indicates whether path is finished, TRUE means done More...
 
std::unique_ptr< MarketModelPathwiseMultiProductclone () const override
 returns a newly-allocated copy of itself More...
 
- Public Member Functions inherited from MarketModelPathwiseMultiProduct
virtual ~MarketModelPathwiseMultiProduct ()=default
 
virtual std::vector< SizesuggestedNumeraires () const =0
 
virtual const EvolutionDescriptionevolution () const =0
 
virtual std::vector< TimepossibleCashFlowTimes () const =0
 
virtual Size numberOfProducts () const =0
 
virtual Size maxNumberOfCashFlowsPerProductPerStep () const =0
 
virtual bool alreadyDeflated () const =0
 
virtual void reset ()=0
 during simulation put product at start of path More...
 
virtual bool nextTimeStep (const CurveState &currentState, std::vector< Size > &numberCashFlowsThisStep, std::vector< std::vector< MarketModelPathwiseMultiProduct::CashFlow > > &cashFlowsGenerated)=0
 return value indicates whether path is finished, TRUE means done More...
 
virtual std::unique_ptr< MarketModelPathwiseMultiProductclone () const =0
 returns a newly-allocated copy of itself More...
 

Private Attributes

std::vector< RealrateTimes_
 
std::vector< Realaccruals_
 
std::vector< TimepaymentTimes_
 
std::vector< Ratestrikes_
 
Size numberRates_
 
Size currentIndex_
 
EvolutionDescription evolution_
 

Detailed Description

Definition at line 91 of file pathwiseproductcaplet.hpp.

Constructor & Destructor Documentation

◆ MarketModelPathwiseMultiDeflatedCaplet() [1/2]

MarketModelPathwiseMultiDeflatedCaplet ( const std::vector< Time > &  rateTimes,
const std::vector< Real > &  accruals,
const std::vector< Time > &  paymentTimes,
const std::vector< Rate > &  strikes 
)

Definition at line 144 of file pathwiseproductcaplet.cpp.

+ Here is the call graph for this function:

◆ MarketModelPathwiseMultiDeflatedCaplet() [2/2]

MarketModelPathwiseMultiDeflatedCaplet ( const std::vector< Time > &  rateTimes,
const std::vector< Real > &  accruals,
const std::vector< Time > &  paymentTimes,
Rate  strike 
)

Definition at line 176 of file pathwiseproductcaplet.cpp.

+ Here is the call graph for this function:

◆ ~MarketModelPathwiseMultiDeflatedCaplet()

Member Function Documentation

◆ suggestedNumeraires()

std::vector< Size > suggestedNumeraires ( ) const
overridevirtual

Implements MarketModelPathwiseMultiProduct.

Definition at line 247 of file pathwiseproductcaplet.cpp.

+ Here is the caller graph for this function:

◆ evolution()

const EvolutionDescription & evolution ( ) const
overridevirtual

Implements MarketModelPathwiseMultiProduct.

Definition at line 256 of file pathwiseproductcaplet.cpp.

+ Here is the caller graph for this function:

◆ possibleCashFlowTimes()

std::vector< Time > possibleCashFlowTimes ( ) const
overridevirtual

Implements MarketModelPathwiseMultiProduct.

Definition at line 261 of file pathwiseproductcaplet.cpp.

+ Here is the caller graph for this function:

◆ numberOfProducts()

Size numberOfProducts ( ) const
overridevirtual

Implements MarketModelPathwiseMultiProduct.

Definition at line 266 of file pathwiseproductcaplet.cpp.

◆ maxNumberOfCashFlowsPerProductPerStep()

Size maxNumberOfCashFlowsPerProductPerStep ( ) const
overridevirtual

Implements MarketModelPathwiseMultiProduct.

Definition at line 271 of file pathwiseproductcaplet.cpp.

+ Here is the caller graph for this function:

◆ alreadyDeflated()

bool alreadyDeflated ( ) const
overridevirtual

Implements MarketModelPathwiseMultiProduct.

Definition at line 138 of file pathwiseproductcaplet.cpp.

+ Here is the caller graph for this function:

◆ reset()

void reset ( )
overridevirtual

during simulation put product at start of path

Implements MarketModelPathwiseMultiProduct.

Definition at line 277 of file pathwiseproductcaplet.cpp.

+ Here is the caller graph for this function:

◆ nextTimeStep()

bool nextTimeStep ( const CurveState currentState,
std::vector< Size > &  numberCashFlowsThisStep,
std::vector< std::vector< MarketModelPathwiseMultiProduct::CashFlow > > &  cashFlowsGenerated 
)
overridevirtual

return value indicates whether path is finished, TRUE means done

Implements MarketModelPathwiseMultiProduct.

Definition at line 209 of file pathwiseproductcaplet.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clone()

std::unique_ptr< MarketModelPathwiseMultiProduct > clone ( ) const
overridevirtual

returns a newly-allocated copy of itself

Implements MarketModelPathwiseMultiProduct.

Definition at line 242 of file pathwiseproductcaplet.cpp.

Member Data Documentation

◆ rateTimes_

std::vector<Real> rateTimes_
private

Definition at line 132 of file pathwiseproductcaplet.hpp.

◆ accruals_

std::vector<Real> accruals_
private

Definition at line 133 of file pathwiseproductcaplet.hpp.

◆ paymentTimes_

std::vector<Time> paymentTimes_
private

Definition at line 134 of file pathwiseproductcaplet.hpp.

◆ strikes_

std::vector<Rate> strikes_
private

Definition at line 135 of file pathwiseproductcaplet.hpp.

◆ numberRates_

Size numberRates_
private

Definition at line 136 of file pathwiseproductcaplet.hpp.

◆ currentIndex_

Size currentIndex_
private

Definition at line 138 of file pathwiseproductcaplet.hpp.

◆ evolution_

EvolutionDescription evolution_
private

Definition at line 140 of file pathwiseproductcaplet.hpp.