public class KohonenNeuron extends Object implements NeuronModel
ActivationFunctionModel| Constructor and Description |
|---|
KohonenNeuron(double[] weightArray,
ActivationFunctionModel activationFunction)
Creates new neuron with weight specyfied by array and specified activation funciton.
|
KohonenNeuron(int weightNumber,
double[] maxWeight,
ActivationFunctionModel activationFunction)
Creates new neuron with specified numbers of weight.
|
| Modifier and Type | Method and Description |
|---|---|
MetricModel |
getDistanceFunction()
Return reference to distance function
|
double |
getValue(double[] inputVector)
Return value of the neuron after activation.
|
double[] |
getWeight()
Return array of neuron weigths
|
void |
setDistanceFunction(MetricModel distanceFunction)
Set distance function
|
void |
setWeight(double[] weight)
Set weights from array as parameter
|
String |
toString()
Returns a string representation of the NeuronModel.
|
public KohonenNeuron(int weightNumber,
double[] maxWeight,
ActivationFunctionModel activationFunction)
weightNumber - numbers of weightmaxWeight - max value of the weightactivationFunction - activation functionpublic KohonenNeuron(double[] weightArray,
ActivationFunctionModel activationFunction)
weightArray - array of the weightactivationFunction - activation functionpublic double[] getWeight()
getWeight in interface NeuronModelpublic double getValue(double[] inputVector)
getValue in interface NeuronModelinputVector - input vector for neuronpublic void setWeight(double[] weight)
setWeight in interface NeuronModelweight - array of the weightspublic String toString()
public MetricModel getDistanceFunction()
public void setDistanceFunction(MetricModel distanceFunction)
distanceFunction - reference to distance functionSCaVis 2.2 ©