public class ReceptiveNeuronLayer extends NeuronLayer
This Layer accepts any descendents of ReceptiveNeuron, but for stability reasons the Sigmoid form is coded in at the moment. Since it's the only possible algorithm that isn't exactly an issue, but be aware if you wish to change the algorithm and source later.
neurons, thresholdModel| Constructor and Description |
|---|
ReceptiveNeuronLayer(ThresholdingAlgorithm p_thresholdModel)
Creates a new receptive neuron layer with the desired thresholding algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
Edge |
getEdge(int p_neuronIndex,
int p_edgeIndex)
Returns an edge from one of the neurons in this layer.
|
ReceptiveNeuron |
getNeuron(int p_index)
Returns a neuron with the index provided
|
ReceptiveNeuron[] |
getNeurons()
Returns all neurons as ReceptiveNeurons.
|
protected void |
linkTo(NeuronLayer p_neuronlayer)
Links all neurons in this layer to all neurons in the layer provided.
|
void |
preCalculate()
Precalculates all neuron values based on their edges.
|
addNeuron, countNeurons, isPresent, removeNeuron, removeNeuronpublic ReceptiveNeuronLayer(ThresholdingAlgorithm p_thresholdModel)
p_thresholdModel - The thresholding algorithm to use./protected void linkTo(NeuronLayer p_neuronlayer)
p_neuronlayer - The neuron layer to link all Neurons to.public Edge getEdge(int p_neuronIndex, int p_edgeIndex) throws IndexOutOfBoundsException
p_neuronIndex - The index of the neron from which to return an edge.p_edgeIndex - The index of the edge from that neuronIndexOutOfBoundsException - in the event that either of the indices fall out of rangepublic void preCalculate()
public ReceptiveNeuron getNeuron(int p_index) throws IndexOutOfBoundsException
NeuronLayergetNeuron in class NeuronLayerp_index - The index of the Neuron to returnIndexOutOfBoundsException - in the event that the index is out of range.public ReceptiveNeuron[] getNeurons()
getNeurons in class NeuronLayer