|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnetwork.DefaultNeuronWithBias
public class DefaultNeuronWithBias
Class representing neuron with bias and specyfied activation function
ActivationFunctionModel| Constructor Summary | |
|---|---|
DefaultNeuronWithBias(double[] weightArray,
ActivationFunctionModel activationFunction)
Creates a new instance of DefaultNeuronWithBias with specified weights defined in array |
|
DefaultNeuronWithBias(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 |
getBias()
Return value of the bias |
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 |
setBias(double bias)
Set bias |
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 DefaultNeuronWithBias(int weightNumber,
double[] maxWeight,
ActivationFunctionModel activationFunction)
weightNumber - numbers of weigthsmaxWeight - maximal value of neuron weightactivationFunction - reference to activation function
public DefaultNeuronWithBias(double[] weightArray,
ActivationFunctionModel activationFunction)
weightArray - array of weights valueactivationFunction - reference to activation function| Method Detail |
|---|
public double[] getWeight()
getWeight in interface NeuronModelpublic void setWeight(double[] weight)
setWeight in interface NeuronModelweight - array of the weightspublic double getValue(double[] inputVector)
getValue in interface NeuronModelinputVector - input vector for neuron
public double getBias()
public void setBias(double bias)
bias - value of the biaspublic 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 | |||||||||