#include <qle/math/randomvariable.hpp>
Public Member Functions | |
~RandomVariable () | |
RandomVariable () | |
RandomVariable (const RandomVariable &r) | |
RandomVariable (RandomVariable &&r) | |
RandomVariable & | operator= (const RandomVariable &r) |
RandomVariable & | operator= (RandomVariable &&r) |
RandomVariable (const Size n, const Real value=0.0, const Real time=Null< Real >()) | |
RandomVariable (const Filter &f, const Real valueTrue=1.0, const Real valueFalse=0.0, const Real time=Null< Real >()) | |
RandomVariable (const Size n, const Real *const data, const Real time=Null< Real >()) | |
RandomVariable (const std::vector< double > &data, const Real time=Null< Real >()) | |
RandomVariable (const QuantLib::Array &data, const Real time=Null< Real >()) | |
void | copyToMatrixCol (QuantLib::Matrix &, const Size j) const |
void | copyToArray (QuantLib::Array &array) const |
void | clear () |
void | set (const Size i, const Real v) |
void | setTime (const Real time) |
void | setAll (const Real v) |
void | resetSize (const Size n) |
bool | deterministic () const |
void | updateDeterministic () |
bool | initialised () const |
Size | size () const |
Real | operator[] (const Size i) const |
Real | at (const Size i) const |
Real | time () const |
RandomVariable & | operator+= (const RandomVariable &) |
RandomVariable & | operator-= (const RandomVariable &) |
RandomVariable & | operator*= (const RandomVariable &) |
RandomVariable & | operator/= (const RandomVariable &) |
void | expand () |
double * | data () |
Static Public Attributes | |
static std::function< void(RandomVariable &)> | deleter |
Private Member Functions | |
void | checkTimeConsistencyAndUpdate (const Real t) |
Private Attributes | |
Size | n_ |
double | constantData_ |
double * | data_ |
bool | deterministic_ |
Real | time_ |
Definition at line 152 of file randomvariable.hpp.
~RandomVariable | ( | ) |
Definition at line 310 of file randomvariable.cpp.
RandomVariable | ( | ) |
Definition at line 312 of file randomvariable.cpp.
RandomVariable | ( | const RandomVariable & | r | ) |
Definition at line 315 of file randomvariable.cpp.
RandomVariable | ( | RandomVariable && | r | ) |
Definition at line 331 of file randomvariable.cpp.
|
explicit |
Definition at line 385 of file randomvariable.cpp.
|
explicit |
Definition at line 388 of file randomvariable.cpp.
|
explicit |
Definition at line 410 of file randomvariable.cpp.
|
explicit |
|
explicit |
Definition at line 429 of file randomvariable.cpp.
RandomVariable & operator= | ( | const RandomVariable & | r | ) |
Definition at line 340 of file randomvariable.cpp.
RandomVariable & operator= | ( | RandomVariable && | r | ) |
Definition at line 372 of file randomvariable.cpp.
void copyToMatrixCol | ( | QuantLib::Matrix & | m, |
const Size | j | ||
) | const |
Definition at line 432 of file randomvariable.cpp.
void copyToArray | ( | QuantLib::Array & | array | ) | const |
Definition at line 442 of file randomvariable.cpp.
void clear | ( | ) |
Definition at line 453 of file randomvariable.cpp.
void set | ( | const Size | i, |
const Real | v | ||
) |
Definition at line 346 of file randomvariable.hpp.
void setTime | ( | const Real | time | ) |
void setAll | ( | const Real | v | ) |
Definition at line 478 of file randomvariable.cpp.
void resetSize | ( | const Size | n | ) |
Definition at line 488 of file randomvariable.cpp.
bool deterministic | ( | ) | const |
void updateDeterministic | ( | ) |
Definition at line 464 of file randomvariable.cpp.
bool initialised | ( | ) | const |
Size size | ( | ) | const |
Real operator[] | ( | const Size | i | ) | const |
Real at | ( | const Size | i | ) | const |
Definition at line 365 of file randomvariable.hpp.
Real time | ( | ) | const |
RandomVariable & operator+= | ( | const RandomVariable & | y | ) |
Definition at line 533 of file randomvariable.cpp.
RandomVariable & operator-= | ( | const RandomVariable & | y | ) |
Definition at line 557 of file randomvariable.cpp.
RandomVariable & operator*= | ( | const RandomVariable & | y | ) |
Definition at line 581 of file randomvariable.cpp.
RandomVariable & operator/= | ( | const RandomVariable & | y | ) |
Definition at line 605 of file randomvariable.cpp.
void expand | ( | ) |
Definition at line 493 of file randomvariable.cpp.
double * data | ( | ) |
|
private |
Definition at line 503 of file randomvariable.cpp.
|
friend |
Definition at line 515 of file randomvariable.cpp.
|
friend |
Definition at line 629 of file randomvariable.cpp.
|
friend |
Definition at line 636 of file randomvariable.cpp.
|
friend |
Definition at line 643 of file randomvariable.cpp.
|
friend |
Definition at line 650 of file randomvariable.cpp.
|
friend |
Definition at line 657 of file randomvariable.cpp.
|
friend |
Definition at line 677 of file randomvariable.cpp.
|
friend |
Definition at line 697 of file randomvariable.cpp.
|
friend |
Definition at line 719 of file randomvariable.cpp.
|
friend |
Definition at line 732 of file randomvariable.cpp.
|
friend |
Definition at line 745 of file randomvariable.cpp.
|
friend |
Definition at line 758 of file randomvariable.cpp.
|
friend |
Definition at line 771 of file randomvariable.cpp.
|
friend |
Definition at line 784 of file randomvariable.cpp.
|
friend |
Definition at line 797 of file randomvariable.cpp.
|
friend |
Definition at line 810 of file randomvariable.cpp.
|
friend |
Definition at line 824 of file randomvariable.cpp.
|
friend |
Definition at line 838 of file randomvariable.cpp.
|
friend |
Definition at line 988 of file randomvariable.cpp.
|
friend |
Definition at line 1007 of file randomvariable.cpp.
|
friend |
Definition at line 1026 of file randomvariable.cpp.
|
friend |
Definition at line 1043 of file randomvariable.cpp.
|
friend |
Definition at line 856 of file randomvariable.cpp.
|
friend |
Definition at line 1062 of file randomvariable.cpp.
|
friend |
Definition at line 1087 of file randomvariable.cpp.
|
friend |
Definition at line 872 of file randomvariable.cpp.
|
friend |
Definition at line 892 of file randomvariable.cpp.
|
friend |
Definition at line 912 of file randomvariable.cpp.
|
friend |
Definition at line 950 of file randomvariable.cpp.
|
static |
Definition at line 227 of file randomvariable.hpp.
|
private |
Definition at line 246 of file randomvariable.hpp.
|
private |
Definition at line 247 of file randomvariable.hpp.
|
private |
Definition at line 248 of file randomvariable.hpp.
|
private |
Definition at line 249 of file randomvariable.hpp.
|
private |
Definition at line 250 of file randomvariable.hpp.