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

PLearn::ConditionalDistribution Class Reference

#include <ConditionalDistribution.h>

Inheritance diagram for PLearn::ConditionalDistribution:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef Distribution inherited

Public Member Functions

 ConditionalDistribution ()
virtual void makeDeepCopyFromShallowCopy (map< const void *, void * > &copies)
 Transforms a shallow copy into a deep copy.

 PLEARN_DECLARE_OBJECT (ConditionalDistribution)
 Declares name and deepCopy methods.

virtual void setInput (const Vec &input)
 Set the input part before using the inherited methods.

virtual void use (const Vec &input, Vec &output)
 computes the ouptu of a trained model


Public Attributes

int input_part_size

Member Typedef Documentation

typedef Distribution PLearn::ConditionalDistribution::inherited
 

Reimplemented from PLearn::Distribution.

Reimplemented in PLearn::ConditionalGaussianDistribution.

Definition at line 61 of file ConditionalDistribution.h.

Referenced by ConditionalDistribution().


Constructor & Destructor Documentation

PLearn::ConditionalDistribution::ConditionalDistribution  ) 
 

Definition at line 44 of file ConditionalDistribution.cc.

References inherited.


Member Function Documentation

void PLearn::ConditionalDistribution::makeDeepCopyFromShallowCopy map< const void *, void * > &  copies  )  [virtual]
 

Transforms a shallow copy into a deep copy.

Reimplemented from PLearn::Distribution.

Reimplemented in PLearn::ConditionalGaussianDistribution.

Definition at line 55 of file ConditionalDistribution.cc.

PLearn::ConditionalDistribution::PLEARN_DECLARE_OBJECT ConditionalDistribution   ) 
 

Declares name and deepCopy methods.

void PLearn::ConditionalDistribution::setInput const Vec input  )  [virtual]
 

Set the input part before using the inherited methods.

Reimplemented in PLearn::ConditionalGaussianDistribution.

Definition at line 61 of file ConditionalDistribution.cc.

References PLERROR, and PLearn::Vec.

Referenced by use().

void PLearn::ConditionalDistribution::use const Vec input,
Vec output
[virtual]
 

computes the ouptu of a trained model

Reimplemented from PLearn::Distribution.

Definition at line 65 of file ConditionalDistribution.cc.

References PLearn::Distribution::expectation(), input_part_size, PLearn::TVec< T >::length(), setInput(), PLearn::TVec< T >::subVec(), PLearn::TMat< T >::toVec(), PLearn::Distribution::variance(), and x.


Member Data Documentation

int PLearn::ConditionalDistribution::input_part_size
 

Definition at line 65 of file ConditionalDistribution.h.

Referenced by use().


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