Logo
Reference manual - version qle_version
Public Member Functions | Static Public Attributes | Friends | List of all members
RandomVariable Struct Reference

Public Member Functions

 RandomVariable (const RandomVariable &r)
 
 RandomVariable (RandomVariable &&r)
 
RandomVariableoperator= (const RandomVariable &r)
 
RandomVariableoperator= (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 QuantLib::Array &array, 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
 
RandomVariableoperator+= (const RandomVariable &)
 
RandomVariableoperator-= (const RandomVariable &)
 
RandomVariableoperator*= (const RandomVariable &)
 
RandomVariableoperator/= (const RandomVariable &)
 
void expand ()
 
double * data ()
 

Static Public Attributes

static std::function< void(RandomVariable &)> deleter
 

Friends

bool operator== (const RandomVariable &, const RandomVariable &)
 
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, const Real falseVal)
 
RandomVariable indicatorGt (RandomVariable, const RandomVariable &, const Real trueVal, const Real falseVal)
 
RandomVariable indicatorGeq (RandomVariable, const RandomVariable &, const Real trueVal, const Real falseVal)