network
Interface NeuronModel

All Known Subinterfaces:
TiredNeuronModel
All Known Implementing Classes:
DefaultNeuron, DefaultNeuronWithBias, KohonenNeuron, KohonenNeuronWithTired

public interface NeuronModel

Neuron Model interface


Method Summary
 double getValue(double[] inputVector)
          Return value of the neuron after activation.
 double[] getWeight()
          Returns array contains valu of the weights
 void setWeight(double[] weight)
          Set weigths from array as parameter
 

Method Detail

getWeight

double[] getWeight()
Returns array contains valu of the weights

Returns:
array of the weights

setWeight

void setWeight(double[] weight)
Set weigths from array as parameter

Parameters:
weight - array of the weights

getValue

double getValue(double[] inputVector)
Return value of the neuron after activation. if activation function is not set, function return sum of the multiplication of vector v_i and weight w_i for each i (numbers of weigth and lenght of the input vector)

Parameters:
inputVector - input vector for neuron
Returns:
return