#include <qle/termstructures/averagespotpricehelper.hpp>
Public Member Functions | |
Constructors | |
AverageSpotPriceHelper (const QuantLib::Handle< QuantLib::Quote > &price, const QuantLib::ext::shared_ptr< CommoditySpotIndex > &index, const QuantLib::Date &start, const QuantLib::Date &end, const QuantLib::Calendar &calendar=QuantLib::Calendar(), bool useBusinessDays=true) | |
AverageSpotPriceHelper (QuantLib::Real price, const QuantLib::ext::shared_ptr< CommoditySpotIndex > &index, const QuantLib::Date &start, const QuantLib::Date &end, const QuantLib::Calendar &calendar=QuantLib::Calendar(), bool useBusinessDays=true) | |
PriceHelper interface | |
QuantLib::Real | impliedQuote () const override |
void | setTermStructure (PriceTermStructure *ts) override |
Visitability | |
void | accept (QuantLib::AcyclicVisitor &v) override |
Inspectors | |
QuantLib::ext::shared_ptr< CommodityIndexedAverageCashFlow > | averageCashflow_ |
QuantLib::RelinkableHandle< PriceTermStructure > | termStructureHandle_ |
QuantLib::ext::shared_ptr< CommodityIndexedAverageCashFlow > | averageCashflow () const |
void | init (const QuantLib::ext::shared_ptr< CommoditySpotIndex > &index, const QuantLib::Date &start, const QuantLib::Date &end, const QuantLib::Calendar &calendar, bool useBusinessDays) |
Shared initialisation method. More... | |
Helper for bootstrapping using prices that are the average of a spot price over a period.
Definition at line 37 of file averagespotpricehelper.hpp.
AverageSpotPriceHelper | ( | const QuantLib::Handle< QuantLib::Quote > & | price, |
const QuantLib::ext::shared_ptr< CommoditySpotIndex > & | index, | ||
const QuantLib::Date & | start, | ||
const QuantLib::Date & | end, | ||
const QuantLib::Calendar & | calendar = QuantLib::Calendar() , |
||
bool | useBusinessDays = true |
||
) |
price | The average price quote. |
index | The commodity spot index. |
start | The start date of the averaging period. The averaging period includes the start date if it is a pricing date according to the calendar . |
end | The end date of the averaging period. The averaging period includes the end date if it is a pricing date according to the calendar . |
calendar | The calendar used to determine pricing dates in the averaging period. If not provided, the index calendar is used. |
useBusinessDays | If set to false , the averaging happens on the complement of the pricing calendar dates in the period. |
AverageSpotPriceHelper | ( | QuantLib::Real | price, |
const QuantLib::ext::shared_ptr< CommoditySpotIndex > & | index, | ||
const QuantLib::Date & | start, | ||
const QuantLib::Date & | end, | ||
const QuantLib::Calendar & | calendar = QuantLib::Calendar() , |
||
bool | useBusinessDays = true |
||
) |
price | The average price. |
index | The commodity spot index. |
start | The start date of the averaging period. The averaging period includes the start date if it is a pricing date according to the calendar . |
end | The end date of the averaging period. The averaging period includes the end date if it is a pricing date according to the calendar . |
calendar | The calendar used to determine pricing dates in the averaging period. If not provided, the index calendar is used. |
useBusinessDays | If set to false , the averaging happens on the complement of the pricing calendar dates in the period. |
|
override |
Definition at line 77 of file averagespotpricehelper.cpp.
|
override |
Definition at line 82 of file averagespotpricehelper.cpp.
|
override |
Definition at line 89 of file averagespotpricehelper.cpp.
QuantLib::ext::shared_ptr< CommodityIndexedAverageCashFlow > averageCashflow | ( | ) | const |
Definition at line 96 of file averagespotpricehelper.cpp.
|
private |
Shared initialisation method.
Definition at line 52 of file averagespotpricehelper.cpp.
|
private |
Definition at line 102 of file averagespotpricehelper.hpp.
|
private |
Definition at line 103 of file averagespotpricehelper.hpp.