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

PLearn::RVArrayRandomElementRandomVariable Class Reference

#include <RandomVar.h>

Inheritance diagram for PLearn::RVArrayRandomElementRandomVariable:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RVArrayRandomElementRandomVariable (const RVArray &table, const RandomVar &index)
 RVArrayRandomElementRandomVariable *.

virtual char * classname ()
void setValueFromParentsValue ()
 set the field value from the values of the parents

virtual Var logP (const Var &obs, const RVInstanceArray &RHS, RVInstanceArray *parameters_to_learn=0)
 redefine RandomVariable functions

void EMBprop (const Vec obs, real post)
const RandomVarindex ()
 convenience inlines


Detailed Description

RandomVariable that is the i-th element of its parent vector, where i is the value of the last parent. i.e. parents[0..N-1] is the table over which we select parents[N] is the index that makes the selection

Definition at line 1148 of file RandomVar.h.


Constructor & Destructor Documentation

PLearn::RVArrayRandomElementRandomVariable::RVArrayRandomElementRandomVariable const RVArray table,
const RandomVar index
 

RVArrayRandomElementRandomVariable *.

Definition at line 1177 of file RandomVar.cc.

References PLearn::RandomVariable::length(), PLearn::RVArray::length(), and PLERROR.


Member Function Documentation

virtual char* PLearn::RVArrayRandomElementRandomVariable::classname  )  [inline, virtual]
 

Implements PLearn::RandomVariable.

Definition at line 1153 of file RandomVar.h.

void PLearn::RVArrayRandomElementRandomVariable::EMBprop const Vec  obs,
real  post
[virtual]
 

************ EM STUFF ********** propagate posterior information to parents in order to perform an EMupdate at the end of an EMEpoch. In the case of mixture-like RVs and their components, the posterior is the probability of the component "this" given the observation "obs".

Implements PLearn::RandomVariable.

Definition at line 1227 of file RandomVar.cc.

References PLearn::Vec.

const RandomVar& PLearn::RVArrayRandomElementRandomVariable::index  )  [inline]
 

convenience inlines

Definition at line 1161 of file RandomVar.h.

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

Referenced by logP(), and setValueFromParentsValue().

Var PLearn::RVArrayRandomElementRandomVariable::logP const Var obs,
const RVInstanceArray RHS,
RVInstanceArray parameters_to_learn = 0
[virtual]
 

redefine RandomVariable functions

Reimplemented from PLearn::FunctionalRandomVariable.

Definition at line 1201 of file RandomVar.cc.

References index(), PLearn::mixture(), PLearn::TVec< RandomVar >::size(), and PLearn::vconcat().

void PLearn::RVArrayRandomElementRandomVariable::setValueFromParentsValue  )  [virtual]
 

set the field value from the values of the parents

Implements PLearn::FunctionalRandomVariable.

Definition at line 1190 of file RandomVar.cc.

References index(), and PLearn::TVec< RandomVar >::size().


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