de.webdings.jannis.neuralnet
Class BiNeuron
BiNeuron is a concrete subclass of
Neuron
.
The activation function of this neuron type is a
binary threshhold function. This means that neurons
of this type have a threshhold value
sigma
.
The neuron fires if the overall activation the neuron
receives is equal or higher than
sigma
.
Version:
- Stefan Thesing
Website: http://www.webdings.de
protected float | sigma -
sigma is the activation treshold value
of the BiNeuron.
|
BiNeuron() - Constructs a BiNeuron using default values:
a=0
net=0
fired=false
shouldHaveFired=false
numberOfConnections=0
sigma=0.8
|
BiNeuron(float sigma) - Constructs a BiNeuron using the specified value for sigma and
using default values for the attributes inherited from
Neuron :
a=0
net=0
fired=false
shouldHaveFired=false
numberOfConnections=0
|
addConnection , addConnection , addConnection , clear , fire , gatherActivation , getA , getActivationFunction , getConnections , getNet , getNumberOfConnections , getShouldHaveFired , hasFired , setConnections , setFired , setShouldHaveFired , tresholdReached |
sigma
protected float sigma
sigma
is the activation treshold value
of the BiNeuron. If the net activation for this
BiNeuron is equal or higher than sigma,
tresholdReached
will return
true
BiNeuron
public BiNeuron()
Constructs a BiNeuron using default values:
a=0
net=0
fired=false
shouldHaveFired=false
numberOfConnections=0
sigma=0.8
BiNeuron
public BiNeuron(float sigma)
Constructs a BiNeuron using the specified value for sigma and
using default values for the attributes inherited from
Neuron
:
a=0
net=0
fired=false
shouldHaveFired=
false
numberOfConnections=0
sigma
-
getSigma
public float getSigma()
- Returns sigma.
setSigma
public void setSigma(float sigma)
sigma
- The value for sigma to set.
tresholdReached
public boolean tresholdReached()
represents the activations function of the
neuron.
- tresholdReached in interface Neuron
true
if the net activation this neuron
receives is equal or higher than sigma.
BiNeuron.java - Copyright (c) 2005 by Stefan Thesing
This file is part of Jannis.
Jannis is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Jannis is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Jannis; if not, write to the
Free Software Foundation, Inc.,
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
© 2005 by Stefan Thesing;
Verbatim copying and redistribution of this entire page are permitted provided this notice is preserved.