#include <ored/model/modelparameter.hpp>
Inheritance diagram for ModelParameter:
Collaboration diagram for ModelParameter:Public Member Functions | |
| ModelParameter () | |
| Default constructor. More... | |
| ModelParameter (bool calibrate, ParamType type, std::vector< QuantLib::Time > times, std::vector< QuantLib::Real > values) | |
| Detailed constructor. More... | |
Inspectors | |
| bool | calibrate () const |
| ParamType | type () const |
| const std::vector< QuantLib::Time > & | times () const |
| const std::vector< QuantLib::Real > & | values () const |
Setters / Modifiers | |
| void | setTimes (std::vector< Real > times) |
| void | setValues (std::vector< Real > values) |
| void | mult (const Real f) |
| void | setCalibrate (const bool b) |
Public Member Functions inherited from XMLSerializable | |
| virtual | ~XMLSerializable () |
| virtual void | fromXML (XMLNode *node)=0 |
| virtual XMLNode * | toXML (XMLDocument &doc) const =0 |
| void | fromFile (const std::string &filename) |
| void | toFile (const std::string &filename) const |
| void | fromXMLString (const std::string &xml) |
| Parse from XML string. More... | |
| std::string | toXMLString () const |
| Parse from XML string. More... | |
Serialisation | |
| bool | calibrate_ |
| ParamType | type_ |
| std::vector< QuantLib::Time > | times_ |
| std::vector< QuantLib::Real > | values_ |
| void | fromXML (XMLNode *node) override |
| void | append (XMLDocument &doc, XMLNode *node) const |
| Method used by toXML in derived classes to add the members here to a node. More... | |
| virtual void | check () const |
| Perform some checks on the parameters. More... | |
Abstract base class for holding model parameter data.
Definition at line 38 of file modelparameter.hpp.
| ModelParameter | ( | ) |
| ModelParameter | ( | bool | calibrate, |
| ParamType | type, | ||
| std::vector< QuantLib::Time > | times, | ||
| std::vector< QuantLib::Real > | values | ||
| ) |
Detailed constructor.
| bool calibrate | ( | ) | const |
| ParamType type | ( | ) | const |
| const vector< Time > & times | ( | ) | const |
Definition at line 45 of file modelparameter.cpp.
Here is the caller graph for this function:| const vector< Real > & values | ( | ) | const |
Definition at line 49 of file modelparameter.cpp.
Here is the caller graph for this function:| void setTimes | ( | std::vector< Real > | times | ) |
Definition at line 53 of file modelparameter.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void setValues | ( | std::vector< Real > | values | ) |
Definition at line 55 of file modelparameter.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void mult | ( | const Real | f | ) |
Definition at line 57 of file modelparameter.cpp.
Here is the caller graph for this function:| void setCalibrate | ( | const bool | b | ) |
Definition at line 61 of file modelparameter.cpp.
Here is the caller graph for this function:
|
overridevirtual |
Implements XMLSerializable.
Reimplemented in VolatilityParameter, and ReversionParameter.
Definition at line 63 of file modelparameter.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Method used by toXML in derived classes to add the members here to a node.
Definition at line 73 of file modelparameter.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protectedvirtual |
Perform some checks on the parameters.
Definition at line 80 of file modelparameter.cpp.
Here is the caller graph for this function:
|
private |
Definition at line 77 of file modelparameter.hpp.
|
private |
Definition at line 78 of file modelparameter.hpp.
|
private |
Definition at line 79 of file modelparameter.hpp.
|
private |
Definition at line 80 of file modelparameter.hpp.