org.simnet.networks
Class WinnerTakeAll

java.lang.Object
  extended by org.simnet.interfaces.Network
      extended by org.simnet.networks.WinnerTakeAll
All Implemented Interfaces:
EventListener, WorldListener

public class WinnerTakeAll
extends Network

WinnerTakeAll.The neuron with the highest weighted input in a winner-take-all network takes on an upper value, all other neurons take on the lower value. In case of a tie the node which wins is arbitrary (the first in an internally maintained list).


Field Summary
 
Fields inherited from class org.simnet.interfaces.Network
CONTINUOUS, DISCRETE
 
Constructor Summary
WinnerTakeAll()
          Default constructor.
WinnerTakeAll(int numNeurons, Layout layout)
          Creates a new winner take all network.
 
Method Summary
 double getLoseValue()
           
 int getNumUnits()
           
 double getWinValue()
           
 void setLoseValue(double loseValue)
           
 void setWinValue(double winValue)
           
 void update()
          Update network.
 
Methods inherited from class org.simnet.interfaces.Network
addNetwork, addNetworkList, addNetworkListener, addNeuron, addNeuron, addNeuronList, addWeight, addWeight, changeNeuron, changeSynapse, checkAllBounds, clearActivations, clearInputs, close, deleteNetwork, deleteNeuron, deleteNeuron, deleteWeight, deleteWeight, fireClampChanged, fireCouplingChanged, fireNetworkChanged, fireNeuronAdded, fireNeuronChanged, fireNeuronDeleted, fireSubnetAdded, fireSubnetDeleted, fireSynapseAdded, fireSynapseChanged, fireSynapseDeleted, getClampNeurons, getClampWeights, getCouplingList, getDepth, getFlatNetworkList, getFlatNeuronList, getFlatSynapseList, getId, getIndents, getInputNeurons, getInteractionMode, getListenerList, getNetwork, getNetworkList, getNetworkParent, getNetworkThread, getNeuron, getNeuron, getNeuronCount, getNeuronList, getOutputNeurons, getPrecision, getRoot, getRoundingOff, getState, getSynapse, getTime, getTimeLabel, getTimeStep, getTimeType, getType, getUnits, getWeight, getWeight, getWeight, getWeightCount, getWeightList, getWorkspace, init, initNeurons, initParents, initWeights, isRoot, isRoundOffActivationValues, isUpdateCompleted, randomizeNeurons, randomizeWeights, removeNetworkListener, round, roundAll, setClampNeurons, setClampWeights, setId, setInteractionMode, setLowerBounds, setNetworkList, setNetworkParent, setNetworkThread, setNeuronList, setPrecision, setRoundingOff, setRoundOffActivationValues, setTime, setTimeStep, setUpdateCompleted, setUpperBounds, setWeightList, setWeightsToZero, setWorkspace, toString, updateAllNetworks, updateAllNeurons, updateAllWeights, updateIds, updateInputs, updateTime, updateTimeType, updateTopLevel, updateWorldListeners, updateWorlds, worldChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WinnerTakeAll

public WinnerTakeAll()
Default constructor.


WinnerTakeAll

public WinnerTakeAll(int numNeurons,
                     Layout layout)
Creates a new winner take all network.

Parameters:
numNeurons - Number of neurons in new network
layout - the way to layout the network
Method Detail

update

public void update()
Update network.

Specified by:
update in class Network

getLoseValue

public double getLoseValue()
Returns:
Returns the loseValue.

setLoseValue

public void setLoseValue(double loseValue)
Parameters:
loseValue - The loseValue to set.

getWinValue

public double getWinValue()
Returns:
Returns the winValue.

setWinValue

public void setWinValue(double winValue)
Parameters:
winValue - The winValue to set.

getNumUnits

public int getNumUnits()
Returns:
Number of neurons.