#include <SampleVariable.h>
Inheritance diagram for PLearn::MultinomialSampleVariable:
Public Member Functions | |
MultinomialSampleVariable (Variable *probabilities, int length=1, int width=1) | |
virtual MultinomialSampleVariable * | deepCopy (map< const void *, void * > &copies) const |
virtual string | classname () const |
virtual void | fprop () |
compute output given input | |
Protected Attributes | |
char | name [50] |
|
Definition at line 133 of file SampleVariable.cc. References name. |
|
Reimplemented from PLearn::UnarySampleVariable. Definition at line 130 of file SampleVariable.cc. |
|
Definition at line 140 of file SampleVariable.cc. References PLearn::UnaryVariable::makeDeepCopyFromShallowCopy(). |
|
compute output given input
Implements PLearn::Variable. Definition at line 156 of file SampleVariable.cc. References k, PLearn::multinomial_sample(), and PLearn::Variable::nelems(). |
|
Definition at line 108 of file SampleVariable.h. Referenced by MultinomialSampleVariable(). |