Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

annie::InputNeuron Class Reference

#include <InputNeuron.h>

Inheritance diagram for annie::InputNeuron:

annie::Neuron List of all members.

Public Methods

 InputNeuron (int label)
void setValue (real value)
virtual std::string toString ()
virtual const char * getClassName ()

Private Methods

void _recacheOutput ()
 Does nothing. More...

void _recacheError ()
 Does nothing. More...


Detailed Description

Input neurons are slightly special. They don't really do much, just implement the Neuron interface so that other neurons can create Links to these. Input neurons allow you to set their output. The activation and output of these neurons is the same and equal to the value set.


Constructor & Destructor Documentation

annie::InputNeuron::InputNeuron int    label
 

Creates an input neuron with the given label

Parameters:
label  The label to be given to the input


Member Function Documentation

void annie::InputNeuron::_recacheError   [private, virtual]
 

Does nothing.

Implements annie::Neuron.

void annie::InputNeuron::_recacheOutput   [private, virtual]
 

Does nothing.

Implements annie::Neuron.

virtual const char* annie::InputNeuron::getClassName   [virtual]
 

For reflection.

Returns:
"InputNeuron

Implements annie::Neuron.

void annie::InputNeuron::setValue real    value
 

Sets the input. The result of getOutput() and getActivation() will be this value.

Parameters:
value  The input value this neuron is associated with

virtual std::string annie::InputNeuron::toString   [virtual]
 

A description of the input. Useful for debugging.

Returns:
A descriptive string. This is just for possible debugging, isn't of much other value

Reimplemented from annie::Neuron.


The documentation for this class was generated from the following file:
Generated on Wed Apr 23 10:42:36 2003 for BioFilter by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002