kohonen
Class WTMLearningFunctionWithTired

java.lang.Object
  extended by kohonen.WTMLearningFunction
      extended by kohonen.WTMLearningFunctionWithTired

public class WTMLearningFunctionWithTired
extends WTMLearningFunction

WTMLearningFunctionWithTired class - learnig class used to learn neuron with tiredness


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

Constructor Detail

WTMLearningFunctionWithTired

public WTMLearningFunctionWithTired(NetworkModel networkModel,
                                    int maxIteration,
                                    MetricModel metrics,
                                    LearningDataModel learningData,
                                    LearningFactorFunctionalModel functionalModel,
                                    NeighbourhoodFunctionModel neighboorhoodFunction)
Creates a new instance of WTMLearningFunction

Parameters:
networkModel - reference to network Model
maxIteration - max number of iteration
metrics - reference to metrics
learningData - reference to learning data
functionalModel - reference to functional Model
neighboorhoodFunction - reference to Neighboorhood Function
Method Detail

getBestNeuron

protected int getBestNeuron(double[] vector)
Return number of best neuron for specified input vector. Tiredness for all neurons increas

Overrides:
getBestNeuron in class WTMLearningFunction
Parameters:
vector - input vector
Returns:
NeuronModelnumber

changeNeuronWeight

protected void changeNeuronWeight(int neuronNumber,
                                  double[] vector,
                                  int iteration,
                                  int distance)
Change neuron weights for specified neuron number, iteration, input data vector and distance and distance to winning neuron. All changed neurons' tiredness is decrease.

Overrides:
changeNeuronWeight in class WTMLearningFunction
Parameters:
distance - distance to winning neuron
neuronNumber - neuron number
vector - input vector
iteration - iteration number