kohonen
Class WTALearningFunctionWithTired

java.lang.Object
  extended by kohonen.WTALearningFunction
      extended by kohonen.WTALearningFunctionWithTired

public class WTALearningFunctionWithTired
extends WTALearningFunction

WTALearningFunctionWithTired class - learnig class used to learn neurons with tiredness


Field Summary
 
Fields inherited from class kohonen.WTALearningFunction
functionalModel, learningData, maxIteration, metrics, networkModel
 
Constructor Summary
WTALearningFunctionWithTired(NetworkModel networkModel, int maxIteration, MetricModel metrics, LearningDataModel learningData, LearningFactorFunctionalModel functionalModel)
          Creates a new instance of WTALearningFunction.
 
Method Summary
protected  void changeNeuronWeight(int neuronNumber, double[] vector, int iteration)
          Change neuron weights for specified neuron number,iteration and input data vector.
protected  int getBestNeuron(double[] vector)
          Return number of the best neuron for specified input vector.
 
Methods inherited from class kohonen.WTALearningFunction
getFunctionalModel, getLearningData, getMaxIteration, getMetrics, getNetworkModel, isShowComments, learn, setFunctionalModel, setLearningData, setMaxIteration, setMetrics, setNetworkModel, setShowComments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WTALearningFunctionWithTired

public WTALearningFunctionWithTired(NetworkModel networkModel,
                                    int maxIteration,
                                    MetricModel metrics,
                                    LearningDataModel learningData,
                                    LearningFactorFunctionalModel functionalModel)
Creates a new instance of WTALearningFunction.

Parameters:
networkModel - network model
maxIteration - iteration number
metrics - metrics
learningData - learnig data
functionalModel - functional model
See Also:
MetricModel, LearningData, NetworkModel, LearningFactorFunctionalModel
Method Detail

getBestNeuron

protected int getBestNeuron(double[] vector)
Return number of the best neuron for specified input vector. All neuron's tiredness is increasing

Overrides:
getBestNeuron in class WTALearningFunction
Parameters:
vector - input vector
Returns:
Neuron number

changeNeuronWeight

protected void changeNeuronWeight(int neuronNumber,
                                  double[] vector,
                                  int iteration)
Change neuron weights for specified neuron number,iteration and input data vector. Changed neruon's tiredness is decreasing.

Overrides:
changeNeuronWeight in class WTALearningFunction
Parameters:
neuronNumber - neuron number
vector - input vector
iteration - iteration number