public class LinearNeuron extends LinkedNeuron
Represents a Linear neuron of a neural net
biased, links, weightRange, XML
Constructor and Description |
---|
LinearNeuron()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected double |
initInput()
Init the input of the neuron (0 or 1 depending on the kind of neuron)
|
protected double |
inputFunction(double input,
double in,
double weight)
Input function of the neuron.
|
protected double |
outputFunction(double input)
Output function of the neuron
|
java.lang.String |
toString()
Returns a string representation of the LinearNeuron
|
copy, equals, getLink, getLinks, getNoflinks, getWeightRange, hashCode, isBiased, keepRelevantLinks, operate, operate, randomWeight, setBiased, setLink, setLinks, setWeightRange
protected double initInput()
Init the input of the neuron (0 or 1 depending on the kind of neuron)
initInput
in class LinkedNeuron
protected double inputFunction(double input, double in, double weight)
Input function of the neuron. Update input for each input neuron
inputFunction
in class LinkedNeuron
input
- Old inputin
- Output of the input neuronweight
- Weight of the link to the input neuronprotected double outputFunction(double input)
Output function of the neuron
outputFunction
in class LinkedNeuron
input
- Input of the neuronpublic java.lang.String toString()
Returns a string representation of the LinearNeuron
toString
in class java.lang.Object