Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::RVArray Class Reference

An RVArray stores a table of RandomVar's. More...

#include <RandomVar.h>

Inheritance diagram for PLearn::RVArray:

Inheritance graph
[legend]
Collaboration diagram for PLearn::RVArray:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RVArray ()
 RVArray *.

 RVArray (int n, int n_extra_allocated=0)
 RVArray (const Array< RandomVar > &va)
 RVArray (const RandomVar &v, int n_extra_allocated=0)
 RVArray (const RandomVar &v1, const RandomVar &v2, int n_extra_allocated=0)
 RVArray (const RandomVar &v1, const RandomVar &v2, const RandomVar &v3, int n_extra_allocated=0)
int length () const
VarArray values () const
 return the VarArray of values of the RV's

RandomVar operator[] (RandomVar index)
 return a new RVArrayRandomElementRandomVariable

RandomVaroperator[] (int i)
const RandomVaroperator[] (int i) const
void sort ()
 sorts in-place the elements by rv_number (topological order of the graphical model) (in the order: ancestors -> descendants)


Static Public Member Functions

int compareRVnumbers (const RandomVar *v1, const RandomVar *v2)

Detailed Description

An RVArray stores a table of RandomVar's.

Definition at line 422 of file RandomVar.h.


Constructor & Destructor Documentation

PLearn::RVArray::RVArray  ) 
 

RVArray *.

Definition at line 880 of file RandomVar.cc.

PLearn::RVArray::RVArray int  n,
int  n_extra_allocated = 0
 

Definition at line 884 of file RandomVar.cc.

PLearn::RVArray::RVArray const Array< RandomVar > &  va  ) 
 

Definition at line 888 of file RandomVar.cc.

PLearn::RVArray::RVArray const RandomVar v,
int  n_extra_allocated = 0
 

Definition at line 891 of file RandomVar.cc.

PLearn::RVArray::RVArray const RandomVar v1,
const RandomVar v2,
int  n_extra_allocated = 0
 

Definition at line 895 of file RandomVar.cc.

PLearn::RVArray::RVArray const RandomVar v1,
const RandomVar v2,
const RandomVar v3,
int  n_extra_allocated = 0
 

Definition at line 902 of file RandomVar.cc.


Member Function Documentation

int PLearn::RVArray::compareRVnumbers const RandomVar v1,
const RandomVar v2
[static]
 

Definition at line 930 of file RandomVar.cc.

Referenced by sort().

int PLearn::RVArray::length  )  const
 

Reimplemented from PLearn::TVec< RandomVar >.

Definition at line 911 of file RandomVar.cc.

References PLearn::TVec< RandomVar >::size().

Referenced by PLearn::SubVecRandomVariable::EMBprop(), PLearn::JointRandomVariable::EMBprop(), PLearn::SubVecRandomVariable::invertible(), PLearn::JointRandomVariable::invertible(), and PLearn::RVArrayRandomElementRandomVariable::RVArrayRandomElementRandomVariable().

const RandomVar& PLearn::RVArray::operator[] int  i  )  const [inline]
 

Reimplemented from PLearn::TVec< RandomVar >.

Definition at line 450 of file RandomVar.h.

References operator[]().

RandomVar& PLearn::RVArray::operator[] int  i  )  [inline]
 

Definition at line 447 of file RandomVar.h.

References operator[]().

RandomVar PLearn::RVArray::operator[] RandomVar  index  ) 
 

return a new RVArrayRandomElementRandomVariable

Definition at line 927 of file RandomVar.cc.

Referenced by operator[]().

void PLearn::RVArray::sort  ) 
 

sorts in-place the elements by rv_number (topological order of the graphical model) (in the order: ancestors -> descendants)

Definition at line 937 of file RandomVar.cc.

References PLearn::compare_function, compareRVnumbers(), PLearn::TVec< RandomVar >::data(), and PLearn::TVec< RandomVar >::size().

VarArray PLearn::RVArray::values  )  const
 

return the VarArray of values of the RV's

Definition at line 919 of file RandomVar.cc.

References PLearn::TVec< RandomVar >::size().

Referenced by PLearn::EM(), PLearn::ConcatColumnsRandomVariable::setValueFromParentsValue(), and PLearn::MixtureRandomVariable::setValueFromParentsValue().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:24:18 2004 for PLearn by doxygen 1.3.7