public class StaticNeuronLayer extends NeuronLayer
Static layers cannot back-propogate
neurons, thresholdModel| Modifier | Constructor and Description |
|---|---|
protected |
StaticNeuronLayer(int p_numberOfNeurons,
ThresholdingAlgorithm p_thresholdModel)
Creates a new layer with a given number of Static Neurons.
|
protected |
StaticNeuronLayer(ThresholdingAlgorithm p_thresholdModel) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setInputValue(double p_value,
int p_index)
Sets the input value of one static node.
|
protected void |
setInputValues(double[] p_values)
Sets all nodes in this layer to the values given, in order.
|
addNeuron, countNeurons, getNeuron, getNeurons, isPresent, removeNeuron, removeNeuronprotected StaticNeuronLayer(int p_numberOfNeurons,
ThresholdingAlgorithm p_thresholdModel)
throws ValueOutOfBoundsException
p_numberOfNeurons - The number of Static neurons to create in this layerValueOutOfBoundsExceptionStaticNeuronprotected StaticNeuronLayer(ThresholdingAlgorithm p_thresholdModel)
protected void setInputValue(double p_value,
int p_index)
throws IndexOutOfBoundsException,
ValueOutOfBoundsException
p_value - The value to set a stupid Neuron top_index - The index of the Neuron of which to set the valueIndexOutOfBoundsExceptionValueOutOfBoundsExceptionNeuronprotected void setInputValues(double[] p_values)
throws IndexOutOfBoundsException,
ValueOutOfBoundsException
p_values - The set of values to which to set the nodesValueOutOfBoundsException - if provided values exceed the 0<x<1 bounds required of this netIndexOutOfBoundsException - if not enough or too few values are provided to set the input Neurons