Logo
Reference manual - version qle_version
RandomVariable Struct Reference

Public Member Functions

 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
bool isfinite () 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

Friends

class boost::serialization::access
bool operator== (const RandomVariable &a, const RandomVariable &b)
RandomVariable operator+ (RandomVariable, const RandomVariable &)
RandomVariable operator- (RandomVariable, const RandomVariable &)
RandomVariable operator* (RandomVariable, const RandomVariable &)
RandomVariable operator/ (RandomVariable, const RandomVariable &)
RandomVariable max (RandomVariable, const RandomVariable &)
RandomVariable min (RandomVariable, const RandomVariable &)
RandomVariable pow (RandomVariable, const RandomVariable &)
RandomVariable operator- (RandomVariable)
RandomVariable abs (RandomVariable)
RandomVariable exp (RandomVariable)
RandomVariable log (RandomVariable)
RandomVariable sqrt (RandomVariable)
RandomVariable sin (RandomVariable)
RandomVariable cos (RandomVariable)
RandomVariable normalCdf (RandomVariable)
RandomVariable normalPdf (RandomVariable)
Filter close_enough (const RandomVariable &, const RandomVariable &)
Filter operator< (const RandomVariable &, const RandomVariable &)
Filter operator<= (const RandomVariable &, const RandomVariable &)
Filter operator> (const RandomVariable &, const RandomVariable &)
Filter operator>= (const RandomVariable &, const RandomVariable &)
bool close_enough_all (const RandomVariable &, const RandomVariable &)
RandomVariable applyFilter (RandomVariable, const Filter &)
RandomVariable applyInverseFilter (RandomVariable, const Filter &)
RandomVariable conditionalResult (const Filter &, RandomVariable, const RandomVariable &)
RandomVariable indicatorEq (RandomVariable, const RandomVariable &, const Real trueVal=1.0, const Real falseVal=0.0)
RandomVariable indicatorGt (RandomVariable, const RandomVariable &, const Real trueVal=1.0, const Real falseVal=0.0, const Real eps=0.0)
RandomVariable indicatorGeq (RandomVariable, const RandomVariable &, const Real trueVal=1.0, const Real falseVal=0.0, const Real eps=0.0)