|
Neuroph | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neuroph.core.Layer
org.neuroph.nnet.comp.CompetitiveLayer
public class CompetitiveLayer
The CompetitiveLayer class represents layer of competitive neurons, and it provides methods for competition. TODO: competitive learning 3. training dw=n(i-w)
Field Summary | |
---|---|
private int |
maxIterations
Max iterations for neurons to compete This is neccesery to limit, otherwise if there is no winner there will be endless loop. |
private static long |
serialVersionUID
The class fingerprint that is set to indicate serialization compatibility with a previous version of the class. |
private CompetitiveNeuron |
winner
The competition winner for this layer |
Fields inherited from class org.neuroph.core.Layer |
---|
neurons |
Constructor Summary | |
---|---|
CompetitiveLayer(int neuronNum,
NeuronProperties neuronProperties)
Create an instance of CompetitiveLayer with the specified number of neurons with neuron properties |
Method Summary | |
---|---|
void |
calculate()
Performs calculaton for all neurons in this layer |
int |
getMaxIterations()
Returns the maxIterations setting for this layer |
CompetitiveNeuron |
getWinner()
Returns the winning neuron for this layer |
void |
setMaxIterations(int maxIterations)
Sets max iterations for neurons to compete in this layer |
Methods inherited from class org.neuroph.core.Layer |
---|
addNeuron, addNeuron, getNeuronAt, getNeurons, getNeuronsCount, getNeuronsIterator, getParentNetwork, indexOf, randomizeWeights, removeNeuron, removeNeuronAt, reset, setNeuron, setParentNetwork |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private int maxIterations
private CompetitiveNeuron winner
Constructor Detail |
---|
public CompetitiveLayer(int neuronNum, NeuronProperties neuronProperties)
neuronNum
- neuron number in this layerneuronProperties
- properties for the nurons in this layerMethod Detail |
---|
public void calculate()
calculate
in class Layer
public CompetitiveNeuron getWinner()
public int getMaxIterations()
public void setMaxIterations(int maxIterations)
maxIterations
- max iterations for neurons to compete in this layer
|
Neuroph | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |