#include <RandomVar.h>
Inheritance diagram for PLearn::RVArrayRandomElementRandomVariable:
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 RandomVar & | index () |
convenience inlines |
Definition at line 1148 of file RandomVar.h.
|
RVArrayRandomElementRandomVariable *.
Definition at line 1177 of file RandomVar.cc. References PLearn::RandomVariable::length(), PLearn::RVArray::length(), and PLERROR. |
|
Implements PLearn::RandomVariable. Definition at line 1153 of file RandomVar.h. |
|
************ 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. |
|
convenience inlines
Definition at line 1161 of file RandomVar.h. References PLearn::TVec< RandomVar >::size(). Referenced by logP(), and setValueFromParentsValue(). |
|
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(). |
|
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(). |