org.neuroph.nnet.comp.neuron
Class BiasNeuron
- java.lang.Object
-
- org.neuroph.core.Neuron
-
- org.neuroph.nnet.comp.neuron.BiasNeuron
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class BiasNeuron extends Neuron
Neuron with constant high output (1), used as bias- See Also:
Neuron, Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description BiasNeuron()Creates an instance of BiasedNeuron.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddInputConnection(Connection connection)Adds the specified input connectionvoidaddInputConnection(Neuron fromNeuron)Adds input connection from specified neuron.voidaddInputConnection(Neuron fromNeuron, double weightVal)Adds input connection with the given weight, from given neuronvoidcalculate()Calculates neuron's output-
Methods inherited from class org.neuroph.core.Neuron
clone, getConnectionFrom, getDelta, getError, getInputConnections, getInputFunction, getLabel, getNetInput, getOutConnections, getOutput, getParentLayer, getTransferFunction, getWeights, hasInputConnectionFrom, hasInputConnections, hasOutputConnectionTo, initializeWeights, removeAllConnections, removeAllInputConnections, removeAllOutputConnections, removeInputConnectionFrom, removeOutputConnectionTo, reset, setDelta, setError, setInput, setInputFunction, setLabel, setOutput, setParentLayer, setTransferFunction
-
-
-
-
Method Detail
-
calculate
public void calculate()
Description copied from class:NeuronCalculates neuron's output
-
addInputConnection
public void addInputConnection(Connection connection)
Description copied from class:NeuronAdds the specified input connection- Overrides:
addInputConnectionin classNeuron- Parameters:
connection- input connection to add
-
addInputConnection
public void addInputConnection(Neuron fromNeuron, double weightVal)
Description copied from class:NeuronAdds input connection with the given weight, from given neuron- Overrides:
addInputConnectionin classNeuron- Parameters:
fromNeuron- neuron to connect fromweightVal- connection weight value
-
addInputConnection
public void addInputConnection(Neuron fromNeuron)
Description copied from class:NeuronAdds input connection from specified neuron.- Overrides:
addInputConnectionin classNeuron- Parameters:
fromNeuron- neuron to connect from
-
-
DMelt 3.0 © DataMelt by jWork.ORG