PLearn 0.1
|
RVInstance represents a RandomVariable V along with a "value" v. More...
#include <RandomVar.h>
Public Member Functions | |
RVInstance (const RandomVar &VV, const Var &vv) | |
RVInstance. | |
RVInstance () | |
RVInstanceArray | operator&& (RVInstance rvi) |
ConditionalExpression | operator| (RVInstanceArray a) |
void | swap_v_and_Vvalue () |
swap the v with the V->value | |
Public Attributes | |
RandomVar | V |
Var | v |
RVInstance represents a RandomVariable V along with a "value" v.
Definition at line 462 of file RandomVar.h.
Definition at line 767 of file RandomVar.cc.
References PLearn::Var::length(), and PLERROR.
:V(VV), v(vv) { if (VV->length()!=vv->length()) PLERROR("Associating a RandomVar of length %d to a Var of length %d", VV->length(),vv->length()); }
PLearn::RVInstance::RVInstance | ( | ) |
Definition at line 774 of file RandomVar.cc.
{}
RVInstanceArray PLearn::RVInstance::operator&& | ( | RVInstance | rvi | ) |
Definition at line 776 of file RandomVar.cc.
{ return RVInstanceArray(*this,rvi); }
ConditionalExpression PLearn::RVInstance::operator| | ( | RVInstanceArray | a | ) |
Definition at line 781 of file RandomVar.cc.
{ return ConditionalExpression(*this,a); }
void PLearn::RVInstance::swap_v_and_Vvalue | ( | ) |
Definition at line 465 of file RandomVar.h.
Referenced by PLearn::RVInstanceArray::compareRVnumbers(), PLearn::EM(), PLearn::logP(), PLearn::P(), PLearn::Sample(), and swap_v_and_Vvalue().
Definition at line 466 of file RandomVar.h.
Referenced by PLearn::EM(), PLearn::logP(), PLearn::P(), and swap_v_and_Vvalue().