public interface NeuralLayer
Modifier and Type | Method and Description |
---|---|
boolean |
addInputSynapse(InputPatternListener newListener)
Adds a new input synapse to the layer
|
void |
addNoise(double amplitude)
Adds a noise to the biases of the layer and to all the input synapses connected
|
boolean |
addOutputSynapse(OutputPatternListener newListener)
Adds a new output synapse to the layer
|
java.util.TreeSet |
check()
Validation checks for invalid parameter values, misconfiguration, etc.
|
NeuralLayer |
copyInto(NeuralLayer newLayer)
Copies a Layer into another one, to obtain a type-transformation
from a kind of Layer to another.
|
java.util.Vector |
getAllInputs()
Returns the vector of the input listeners
|
java.util.Vector |
getAllOutputs()
Returns the vector of the input listeners
|
Matrix |
getBias()
Return the bias matrix
|
java.lang.String |
getLayerName()
Returns the name of the layer
|
Monitor |
getMonitor()
Returns the monitor object
|
int |
getRows()
Returns the dimension (# of neurons) of the Layer
|
boolean |
isRunning()
Returns true if the layer is running
|
void |
removeAllInputs()
Remove all the input listeners of the net
|
void |
removeAllOutputs()
Remove all the output listeners of the net
|
void |
removeInputSynapse(InputPatternListener newListener)
Remove an input Listener
|
void |
removeOutputSynapse(OutputPatternListener newListener)
Remove an output listener from the layer
|
void |
setAllInputs(java.util.Vector newAInputPatternListener)
Sets the vector that contains all the input listeners.
|
void |
setAllOutputs(java.util.Vector newAOutputPatternListener)
Sets the vector that contains all the output listeners.
|
void |
setBias(Matrix newBias)
Sets the matrix of biases
|
void |
setLayerName(java.lang.String newLayerName)
Sets the name of the layer
|
void |
setMonitor(Monitor newMonitor)
Sets the monitor object
|
void |
setRows(int newRows)
Sets the dimension (# of neurons) of the Layer
|
void |
start()
Starts the Layer
|
void addNoise(double amplitude)
amplitude
- the noise's amplitude in terms of distance from zero;
e.g.: a value equal 0.3 means a noise from -0.3 to 0.3NeuralLayer copyInto(NeuralLayer newLayer)
newLayer
- neural.engine.Layerjava.util.Vector getAllInputs()
java.util.Vector getAllOutputs()
Matrix getBias()
java.lang.String getLayerName()
int getRows()
void removeAllInputs()
void removeAllOutputs()
void removeInputSynapse(InputPatternListener newListener)
newListener
- the input listener to removevoid removeOutputSynapse(OutputPatternListener newListener)
newListener
- the output listener to removevoid setAllInputs(java.util.Vector newAInputPatternListener)
newAInputPatternListener
- The vector containing the list of input synapsesvoid setAllOutputs(java.util.Vector newAOutputPatternListener)
newAOutputPatternListener
- The vector containing the list of output synapsesvoid setBias(Matrix newBias)
newBias
- The Matrix object containing the biasesboolean addInputSynapse(InputPatternListener newListener)
newListener
- The new input synapsevoid setLayerName(java.lang.String newLayerName)
newLayerName
- The nameboolean addOutputSynapse(OutputPatternListener newListener)
newListener
- The new output synapsevoid setRows(int newRows)
newRows
- The number of the neurons contained in the Layervoid start()
void setMonitor(Monitor newMonitor)
newMonitor
- The Monitor to be setMonitor getMonitor()
boolean isRunning()
java.util.TreeSet check()
Submit Feedback to pmarrone@users.sourceforge.net