public interface Layer
Modifier and Type | Method and Description |
---|---|
void |
activate()
Performs calculations for this layer.
|
double |
getInput(int neuron)
Returns the value of net input of the specified neuron.
|
int |
getNeuronCount()
Returns the number of neurons in this layer.
|
double |
getOutput(int neuron)
Returns the value of the output of the specified neuron.
|
void |
init(LayerInitializer initializer)
Initializes this layer using the provided initializer.
|
void |
stimulate(int neuron,
double value)
Stimulates specified neuron with given value.
|
void activate()
void stimulate(int neuron, double value)
neuron
- the index of the neuronvalue
- the stimulation valuedouble getInput(int neuron)
neuron
- an index of the neuron in this layerdouble getOutput(int neuron)
neuron
- an index of the neuron in this layerint getNeuronCount()
void init(LayerInitializer initializer)
initializer.init(this)
.initializer
- the initializerCopyright © 2012. All Rights Reserved.