Weighted average yield curve segment. More...
#include <ored/configuration/yieldcurveconfig.hpp>
Inheritance diagram for WeightedAverageYieldCurveSegment:Public Member Functions | |
Constructors/Destructors | |
| WeightedAverageYieldCurveSegment () | |
| Default constructor. | |
| WeightedAverageYieldCurveSegment (const string &typeID, const string &referenceCurveID1, const string &referenceCurveID2, const Real weight1, const Real weight2) | |
| Detailed constructor. | |
| virtual | ~WeightedAverageYieldCurveSegment () |
| Default destructor. | |
Serialisation | |
| virtual void | fromXML (XMLNode *node) override |
| virtual XMLNode * | toXML (XMLDocument &doc) const override |
Inspectors | |
| const string & | referenceCurveID1 () const |
| const string & | referenceCurveID2 () const |
| Real | weight1 () const |
| Real | weight2 () const |
Public Member Functions inherited from YieldCurveSegment | |
| virtual | ~YieldCurveSegment () |
| Default destructor. | |
| Type | type () const |
| const string & | typeID () const |
| const string & | conventionsID () const |
| const QuantLib::Pillar::Choice | pillarChoice () const |
| Size | priority () const |
| Size | minDistance () const |
| const vector< pair< string, bool > > & | quotes () const |
Public Member Functions inherited from XMLSerializable | |
| void | fromFile (const std::string &filename) |
| void | toFile (const std::string &filename) const |
| void | fromXMLString (const std::string &xml) |
| Parse from XML string. | |
| std::string | toXMLString () const |
| Parse from XML string. | |
Visitability | |
| virtual void | accept (AcyclicVisitor &) override |
Additional Inherited Members | |
Public Types inherited from YieldCurveSegment | |
| enum class | Type { Zero , ZeroSpread , Discount , Deposit , FRA , Future , OIS , Swap , AverageOIS , TenorBasis , TenorBasisTwo , BMABasis , FXForward , CrossCcyBasis , CrossCcyFixFloat , DiscountRatio , FittedBond , WeightedAverage , YieldPlusDefault , IborFallback , BondYieldShifted } |
| supported segment types | |
Protected Member Functions inherited from YieldCurveSegment | |
| YieldCurveSegment () | |
| Default constructor. | |
| YieldCurveSegment (const string &typeID, const string &conventionsID, const vector< string > "es) | |
| Detailed constructor - assumes all quotes are mandatory. | |
| pair< string, bool > | quote (const string &name, bool opt=false) |
| Utility to build a quote, optional flag defaults to false. | |
Protected Attributes inherited from YieldCurveSegment | |
| vector< pair< string, bool > > | quotes_ |
| Quote and optional flag pair. | |
Weighted average yield curve segment.
A weighted average segment is used to build a yield curve from two source curves and weights. The resulting discount factor is the weighted sum of the source curves' discount factors.