N
- Type for ILayer.public interface ILayer<N extends INeuron>
Represents a layer in the neural net
Modifier and Type | Method and Description |
---|---|
void |
addNeuron(N neuron)
Add a neuron to the layer
|
boolean |
equals(ILayer<N> other)
Checks if this layer is equal to another
|
int |
getMaxnofneurons()
Returns the maximum number of neurons of this layer
|
N |
getNeuron(int index)
Returns a neuron of the layer, using its index
|
int |
getNofneurons()
Returns the number of neurons of this layer
|
int |
hashCode()
Returns an integer number that identifies the layer
|
void addNeuron(N neuron)
Add a neuron to the layer
neuron
- New neuron to add to the layerint getMaxnofneurons()
Returns the maximum number of neurons of this layer
N getNeuron(int index)
Returns a neuron of the layer, using its index
index
- Index of the neuron to returnint getNofneurons()
Returns the number of neurons of this layer
boolean equals(ILayer<N> other)
Checks if this layer is equal to another
other
- Other layer to compareint hashCode()
Returns an integer number that identifies the layer
hashCode
in class java.lang.Object