PLearn 0.1
Public Member Functions
PLearn::BinarySampleVariable Class Reference

#include <SampleVariable.h>

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

List of all members.

Public Member Functions

 BinarySampleVariable (Variable *input1, Variable *input2, int length, int width)
virtual string classname () const
virtual void bprop ()
VarArray random_sources ()
 return ancestors which compute a non-deterministic function of their parents

Detailed Description

Definition at line 81 of file SampleVariable.h.


Constructor & Destructor Documentation

PLearn::BinarySampleVariable::BinarySampleVariable ( Variable input1,
Variable input2,
int  length,
int  width 
) [inline]

Definition at line 84 of file SampleVariable.h.

        :BinaryVariable(input1,input2,length,width) { }

Member Function Documentation

virtual void PLearn::BinarySampleVariable::bprop ( ) [inline, virtual]

Implements PLearn::Variable.

Definition at line 87 of file SampleVariable.h.

{ }
string PLearn::BinarySampleVariable::classname ( ) const [virtual]

Reimplemented from PLearn::Object.

Reimplemented in PLearn::DiagonalNormalSampleVariable.

Definition at line 80 of file SampleVariable.cc.

{ return "BinarySampleVariable"; }
VarArray PLearn::BinarySampleVariable::random_sources ( ) [virtual]

return ancestors which compute a non-deterministic function of their parents

Reimplemented from PLearn::BinaryVariable.

Definition at line 83 of file SampleVariable.cc.

{ 
    if (marked)
        return VarArray(0,0);
    marked = true;
    return input1->random_sources() & input2->random_sources() & Var(this); 
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines