public final class InputLayer extends Object implements Layer, Serializable
| Constructor and Description |
|---|
InputLayer(int neuronCount)
Creates a new input layer with specified number of neurons.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Doesn't do anything.
|
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)
Sets input and output of specified neuron to the given value.
|
String |
toString() |
public InputLayer(int neuronCount)
neuronCount - the number of neurons in the layerpublic int getNeuronCount()
LayergetNeuronCount in interface Layerpublic void stimulate(int neuron,
double value)
public double getInput(int neuron)
Layerpublic double getOutput(int neuron)
Layerpublic void init(LayerInitializer initializer)
Layerinitializer.init(this).Copyright © 2012. All Rights Reserved.