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

InputLayer Class Reference

A layer of input neurons. More...

#include <InputLayer.h>

Inheritance diagram for InputLayer:

Inheritance graph
[legend]
Collaboration diagram for InputLayer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 InputLayer (int label, int size=0)
 Construct a layer with the given label and with the given number of inputs.

virtual ~InputLayer ()
virtual void setInput (const Vector &input)
 Sets the values of the input neurons in this layer to the values provided.

virtual void setInput (const real *input)
 Sets the values of the input neurons in this layer to the values provided.

virtual void addNeuron (Neuron *nrn)
 Adds a neuron to the input layer.

virtual const char * getClassName ()
 Returns "InputLayer".


Detailed Description

A layer of input neurons.


Constructor & Destructor Documentation

InputLayer int  label,
int  size = 0
 

Construct a layer with the given label and with the given number of inputs.

Parameters:
label The label to be given to this layer
size The number of input in this layer

virtual ~InputLayer  )  [virtual]
 


Member Function Documentation

virtual void addNeuron Neuron nrn  )  [virtual]
 

Adds a neuron to the input layer.

Parameters:
nrn An InputNeuron
Exceptions:
Exception if the given neuron is not an InputNeuron

Reimplemented from Layer.

virtual const char* getClassName  )  [virtual]
 

Returns "InputLayer".

Reimplemented from Layer.

virtual void setInput const real input  )  [virtual]
 

Sets the values of the input neurons in this layer to the values provided.

virtual void setInput const Vector input  )  [virtual]
 

Sets the values of the input neurons in this layer to the values provided.


The documentation for this class was generated from the following file:
Generated on Fri Jun 18 13:19:00 2004 for Annie by doxygen 1.3.5