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

PLearn::StochasticRandomVariable Class Reference

#include <RandomVar.h>

Inheritance diagram for PLearn::StochasticRandomVariable:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 StochasticRandomVariable (int length=1)
 StochasticRandomVariable *.

 StochasticRandomVariable (const RVArray &params, int length)
 StochasticRandomVariable (const RVArray &params, int length, int width)
virtual bool isNonRandom ()
 define RandomVariable functions the only exception to this default would be a dirac distribution

virtual bool isDiscrete ()
 most common default

virtual void setKnownValues ()

Detailed Description

A StochasticRandomVariable represents a "stochastic" distribution. Most "ordinary" distributions are of this type. Its parameters are its parents (which can be random or not). A StochasticRandomVariable can NEVER be random, even when its parents are non-random. Some sub-classes of StochasticRandomVariable can be defined which have no RandomVar parameters (i.e., no parents).

Definition at line 961 of file RandomVar.h.


Constructor & Destructor Documentation

PLearn::StochasticRandomVariable::StochasticRandomVariable int  length = 1  ) 
 

StochasticRandomVariable *.

Definition at line 945 of file RandomVar.cc.

PLearn::StochasticRandomVariable::StochasticRandomVariable const RVArray params,
int  length
 

Definition at line 948 of file RandomVar.cc.

PLearn::StochasticRandomVariable::StochasticRandomVariable const RVArray params,
int  length,
int  width
 

Definition at line 953 of file RandomVar.cc.


Member Function Documentation

virtual bool PLearn::StochasticRandomVariable::isDiscrete  )  [inline, virtual]
 

most common default

Implements PLearn::RandomVariable.

Reimplemented in PLearn::MixtureRandomVariable, and PLearn::MultinomialRandomVariable.

Definition at line 974 of file RandomVar.h.

virtual bool PLearn::StochasticRandomVariable::isNonRandom  )  [inline, virtual]
 

define RandomVariable functions the only exception to this default would be a dirac distribution

Implements PLearn::RandomVariable.

Definition at line 971 of file RandomVar.h.

Referenced by setKnownValues().

void PLearn::StochasticRandomVariable::setKnownValues  )  [virtual]
 

traverse the graph of ancestors of this node and mark nodes which are deterministic descendents of marked nodes while setting their "value" field as a function of their parents.

Reimplemented from PLearn::RandomVariable.

Reimplemented in PLearn::MixtureRandomVariable.

Definition at line 959 of file RandomVar.cc.

References isNonRandom(), PLearn::RandomVariable::setValueFromParentsValue(), and PLearn::TVec< RandomVar >::size().


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