|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object network.DefaultNeuron
public class DefaultNeuron
Class representing default neuron with specyfied activation function
ActivationFunctionModel
Constructor Summary | |
---|---|
DefaultNeuron(double[] weightArray,
ActivationFunctionModel activationFunction)
Creates a new instance of DefaultNeuronWithBias with specified weights defined in array |
|
DefaultNeuron(int weightNumber,
double[] maxWeight,
ActivationFunctionModel activationFunction)
Creates a new instance of DefaultNeuronWithBias with random weights value |
Method Summary | |
---|---|
ActivationFunctionModel |
getActivationFunction()
Return reference to activation function |
double |
getValue(double[] inputVector)
Return value of the neuron after activation. |
double[] |
getWeight()
Returns array contains valu of the weights |
void |
setActivationFunction(ActivationFunctionModel activationFunction)
Set activation function |
void |
setWeight(double[] weight)
Set weigths from array as parameter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultNeuron(int weightNumber, double[] maxWeight, ActivationFunctionModel activationFunction)
weightNumber
- numbers of weigthsmaxWeight
- maximal value of neuron weightactivationFunction
- reference to activation functionpublic DefaultNeuron(double[] weightArray, ActivationFunctionModel activationFunction)
weightArray
- array of weights valueactivationFunction
- reference to activation functionMethod Detail |
---|
public double[] getWeight()
getWeight
in interface NeuronModel
public void setWeight(double[] weight)
setWeight
in interface NeuronModel
weight
- array of the weightspublic double getValue(double[] inputVector)
getValue
in interface NeuronModel
inputVector
- input vector for neuron
public ActivationFunctionModel getActivationFunction()
public void setActivationFunction(ActivationFunctionModel activationFunction)
activationFunction
- reference to activation function
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |