network
Class KohonenNeuronWithTired

java.lang.Object
  extended by network.KohonenNeuron
      extended by network.KohonenNeuronWithTired
All Implemented Interfaces:
NeuronModel, TiredNeuronModel

public class KohonenNeuronWithTired
extends KohonenNeuron
implements TiredNeuronModel

Class representing kohenen neuron with tiredness with specyfied activation function


Constructor Summary
KohonenNeuronWithTired(double[] weightArray, ActivationFunctionModel activationFunction)
          Creates new kohonen neuron with weight specyfied by array and specified activation funciton.
KohonenNeuronWithTired(int weightNumber, double[] maxWeight, ActivationFunctionModel activationFunction)
          Creates new kohonen neuron with specyfied numbers of weight.
 
Method Summary
 int getTiredness()
          Return value of tiredness
 void setTiredness(int tiredness)
          Set tiredness
 
Methods inherited from class network.KohonenNeuron
getDistanceFunction, getValue, getWeight, setDistanceFunction, setWeight, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface network.NeuronModel
getValue, getWeight, setWeight
 

Constructor Detail

KohonenNeuronWithTired

public KohonenNeuronWithTired(int weightNumber,
                              double[] maxWeight,
                              ActivationFunctionModel activationFunction)
Creates new kohonen neuron with specyfied numbers of weight. Value of the weight is random where max value is definited by maxWeight. Activation function is definied by activationFunction parameter.

Parameters:
weightNumber - numbers of weight
maxWeight - max value of the weight
activationFunction - activation function

KohonenNeuronWithTired

public KohonenNeuronWithTired(double[] weightArray,
                              ActivationFunctionModel activationFunction)
Creates new kohonen neuron with weight specyfied by array and specified activation funciton. Numbers of weights are the same as length of the array.

Parameters:
weightArray - array of the weight
activationFunction - activation function
Method Detail

setTiredness

public void setTiredness(int tiredness)
Set tiredness

Specified by:
setTiredness in interface TiredNeuronModel
Parameters:
tiredness - tiredness

getTiredness

public int getTiredness()
Return value of tiredness

Specified by:
getTiredness in interface TiredNeuronModel
Returns:
value of tiredness