|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object network.KohonenNeuron
public class KohonenNeuron
Class representing neuron with bias and specyfied activation function
ActivationFunctionModel
Constructor Summary | |
---|---|
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 specyfied numbers of weight. |
Method Summary | |
---|---|
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 weigths from array as parameter |
java.lang.String |
toString()
Returns a string representation of the NeuronModel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 functionMethod Detail |
---|
public double[] getWeight()
getWeight
in interface NeuronModel
public double getValue(double[] inputVector)
getValue
in interface NeuronModel
inputVector
- input vector for neuron
public void setWeight(double[] weight)
setWeight
in interface NeuronModel
weight
- array of the weightspublic java.lang.String toString()
toString
in class java.lang.Object
public MetricModel getDistanceFunction()
public void setDistanceFunction(MetricModel distanceFunction)
distanceFunction
- reference to distance function
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |