|
| SensiCube (const std::set< std::string > &ids, const QuantLib::Date &asof, QuantLib::Size samples, const T &t=T()) |
|
QuantLib::Size | numIds () const override |
| Return the length of each dimension.
|
|
QuantLib::Size | samples () const override |
|
const std::map< std::string, Size > & | idsAndIndexes () const override |
| Get the vector of ids for this cube.
|
|
const std::vector< QuantLib::Date > & | dates () const override |
| Get the vector of dates for this cube.
|
|
QuantLib::Date | asof () const override |
| Return the asof date (T0 date)
|
|
Real | getT0 (Size i, Size) const override |
| Get a T0 value from the cube.
|
|
void | setT0 (Real value, Size i, Size) override |
| Set a value in the cube.
|
|
Real | get (Size i, Size j, Size k, Size) const override |
| Get a value from the cube.
|
|
void | set (Real value, Size i, Size j, Size k, Size) override |
| Set a value in the cube.
|
|
void | remove (Size i) override |
|
void | remove (Size i, Size k) override |
|
std::map< QuantLib::Size, QuantLib::Real > | getTradeNPVs (QuantLib::Size i) const override |
|
std::set< QuantLib::Size > | relevantScenarios () const override |
|
QuantLib::Size | numDates () const override |
| Number of dates in the NPVSensiCube is exactly one i.e. the as of date.
|
|
QuantLib::Size | depth () const override |
| The depth in the NPVSensiCube is exactly one.
|
|
Real | get (QuantLib::Size id, QuantLib::Size sample) const |
| Convenience method to get a value from the cube using id and sample only.
|
|
Real | get (const std::string &id, QuantLib::Size sample) const |
| Convenience method to get a value from the cube using id and sample only.
|
|
void | set (QuantLib::Real value, QuantLib::Size id, QuantLib::Size sample) |
| Convenience method to set a value in the cube using id and sample only.
|
|
void | set (QuantLib::Real value, const std::string &id, QuantLib::Size sample) |
| Convenience method to set a value in the cube using id and sample only.
|
|
Size | getTradeIndex (const std::string &tradeId) const |
| Return the index of the trade in the cube.
|
|
virtual std::map< QuantLib::Size, QuantLib::Real > | getTradeNPVs (Size tradeIdx) const =0 |
|
std::map< QuantLib::Size, QuantLib::Real > | getTradeNPVs (const std::string &tradeId) const |
|
virtual Real | get (Size id, Size date, Size sample, Size depth=0) const=0 |
| Get a value from the cube using index.
|
|
virtual Real | get (const std::string &id, const QuantLib::Date &date, Size sample, Size depth=0) const |
| Get a value from the cube using trade id and date.
|
|
virtual void | set (Real value, Size id, Size date, Size sample, Size depth=0)=0 |
| Set a value in the cube using index.
|
|
virtual void | set (Real value, const std::string &id, const QuantLib::Date &date, Size sample, Size depth=0) |
| Set a value in the cube using trade id and date.
|
|
| NPVCube () |
| default ctor
|
|
| NPVCube (NPVCube &)=delete |
| Do not allow cube copying.
|
|
NPVCube & | operator= (NPVCube const &)=delete |
|
virtual | ~NPVCube () |
| dtor
|
|
const std::set< std::string > | ids () const |
| Get a set of all ids in the cube.
|
|
virtual Real | getT0 (const std::string &id, Size depth=0) const |
| Get a T0 value from the cube using trade id.
|
|
virtual void | setT0 (Real value, const std::string &id, Size depth=0) |
| Set a value in the cube using trade id.
|
|
virtual Real | get (const std::string &id, const QuantLib::Date &date, Size sample, Size depth=0) const |
| Get a value from the cube using trade id and date.
|
|
virtual void | set (Real value, const std::string &id, const QuantLib::Date &date, Size sample, Size depth=0) |
| Set a value in the cube using trade id and date.
|
|
Size | getTradeIndex (const std::string &id) const |
|
template<typename T>
class ore::analytics::SensiCube< T >
SensiCube stores only npvs not equal to the base npvs.