Logo
Reference manual - version qle_version
Public Member Functions | List of all members
FormulaBasedIndex Class Reference

formula based index class More...

#include <qle/indexes/formulabasedindex.hpp>

+ Inheritance diagram for FormulaBasedIndex:

Public Member Functions

 FormulaBasedIndex (const std::string &familyName, const std::vector< QuantLib::ext::shared_ptr< InterestRateIndex >> &indices, const CompiledFormula &formula, const Calendar &fixingCalendar)
 
Date maturityDate (const Date &valueDate) const override
 
Rate forecastFixing (const Date &fixingDate) const override
 
Rate pastFixing (const Date &fixingDate) const override
 
bool allowsNativeFixings () override
 
const std::vector< QuantLib::ext::shared_ptr< InterestRateIndex > > & indices () const
 
const CompiledFormulaformula () const
 

Detailed Description

formula based index class

The variables in the given formula must correspond to index vector, both w.r.t. size and position.

Warning: