jhpro.nnet.jknnl
Class KohonenNeuronWithTired
- java.lang.Object
-
- jhpro.nnet.jknnl.KohonenNeuron
-
- jhpro.nnet.jknnl.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
Constructors Constructor and Description KohonenNeuronWithTired(double[] weightArray, ActivationFunctionModel activationFunction)Creates new kohonen neuron with weight specified by array and specified activation function.KohonenNeuronWithTired(int weightNumber, double[] maxWeight, ActivationFunctionModel activationFunction)Creates new kohonen neuron with specified numbers of weight.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetTiredness()Return value of tirednessvoidsetTiredness(int tiredness)Set tiredness-
Methods inherited from class jhpro.nnet.jknnl.KohonenNeuron
getDistanceFunction, getValue, getWeight, setDistanceFunction, setWeight, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jhpro.nnet.jknnl.NeuronModel
getValue, getWeight, setWeight
-
-
-
-
Constructor Detail
-
KohonenNeuronWithTired
public KohonenNeuronWithTired(int weightNumber, double[] maxWeight, ActivationFunctionModel activationFunction)Creates new kohonen neuron with specified numbers of weight. Value of the weight is random where max value is definite by maxWeight. Activation function is defined by activationFunction parameter.- Parameters:
weightNumber- numbers of weightmaxWeight- max value of the weightactivationFunction- activation function
-
KohonenNeuronWithTired
public KohonenNeuronWithTired(double[] weightArray, ActivationFunctionModel activationFunction)Creates new kohonen neuron with weight specified by array and specified activation function. Numbers of weights are the same as length of the array.- Parameters:
weightArray- array of the weightactivationFunction- activation function
-
-
Method Detail
-
setTiredness
public void setTiredness(int tiredness)
Set tiredness- Specified by:
setTirednessin interfaceTiredNeuronModel- Parameters:
tiredness- tiredness
-
getTiredness
public int getTiredness()
Return value of tiredness- Specified by:
getTirednessin interfaceTiredNeuronModel- Returns:
- value of tiredness
-
-
DMelt 3.0 © DataMelt by jWork.ORG