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

PLearn::MultinomialSampleVariable Class Reference

#include <SampleVariable.h>

Inheritance diagram for PLearn::MultinomialSampleVariable:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MultinomialSampleVariable (Variable *probabilities, int length=1, int width=1)
virtual MultinomialSampleVariabledeepCopy (map< const void *, void * > &copies) const
virtual string classname () const
virtual void fprop ()
 compute output given input


Protected Attributes

char name [50]

Constructor & Destructor Documentation

PLearn::MultinomialSampleVariable::MultinomialSampleVariable Variable probabilities,
int  length = 1,
int  width = 1
 

Definition at line 133 of file SampleVariable.cc.

References name.


Member Function Documentation

string PLearn::MultinomialSampleVariable::classname  )  const [virtual]
 

Reimplemented from PLearn::UnarySampleVariable.

Definition at line 130 of file SampleVariable.cc.

MultinomialSampleVariable * PLearn::MultinomialSampleVariable::deepCopy map< const void *, void * > &  copies  )  const [virtual]
 

Definition at line 140 of file SampleVariable.cc.

References PLearn::UnaryVariable::makeDeepCopyFromShallowCopy().

void PLearn::MultinomialSampleVariable::fprop  )  [virtual]
 

compute output given input

Implements PLearn::Variable.

Definition at line 156 of file SampleVariable.cc.

References k, PLearn::multinomial_sample(), and PLearn::Variable::nelems().


Member Data Documentation

char PLearn::MultinomialSampleVariable::name[50] [protected]
 

Definition at line 108 of file SampleVariable.h.

Referenced by MultinomialSampleVariable().


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