24 const DayCounter& dc,
const bool purelyTimeBased)
25 :
PriceTermStructure(dc == DayCounter() ? model->termStructure()->dayCounter() : dc), model_(model),
26 purelyTimeBased_(purelyTimeBased),
27 referenceDate_(purelyTimeBased ? Null<Date>() : model_->termStructure()->referenceDate()),
28 state_(Array(model->n(), 0.0)) {
const QuantLib::ext::shared_ptr< CommodityModel > model_
ModelImpliedPriceTermStructure(const QuantLib::ext::shared_ptr< CommodityModel > &model, const DayCounter &dc=DayCounter(), const bool purelyTimeBased=false)
virtual void update() override
price term structure implied by a COM model