Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Neuroph
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.neuroph.nnet.comp
Class CompetitiveLayer

    java.lang.Object
      org.neuroph.core.Layer
          org.neuroph.nnet.comp.CompetitiveLayer

All Implemented Interfaces:
  java.io.Serializable

    public class CompetitiveLayer

extends Layer

Represents layer of competitive neurons, and provides methods for competition. TODO: competitive learning 3. training dw=n(i-w)

See Also:
  Serialized Form

Field Summary

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, initializeWeights, initializeWeights, initializeWeights, randomizeWeights, removeNeuron, removeNeuronAt, reset, setNeuron, setParentNetwork`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CompetitiveLayer

    public CompetitiveLayer(int neuronNum,
                            NeuronProperties neuronProperties)

  Create an instance of CompetitiveLayer with the specified number of neurons with neuron properties

  Parameters:
    `neuronNum` - neuron number in this layer
    `neuronProperties` - properties for the nurons in this layer

Method Detail

### calculate

    public void calculate()

  Performs calculaton for all neurons in this layer

  Overrides:
    `calculate` in class `Layer`

### getWinner

    public CompetitiveNeuron getWinner()

  Returns the winning neuron for this layer

  Returns:
    winning neuron for this layer

### getMaxIterations

    public int getMaxIterations()

  Returns the maxIterations setting for this layer

  Returns:
    maxIterations setting for this layer

### setMaxIterations

    public void setMaxIterations(int maxIterations)

  Sets max iterations for neurons to compete in this layer

  Parameters:
    `maxIterations` - max iterations for neurons to compete in this layer

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Neuroph
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD