de.webdings.jannis.neuralnet

Class BiNeuron


public class BiNeuron
extends Neuron

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:
0.1 10.08.2005

Author:
Stefan Thesing
Website: http://www.webdings.de

Field Summary

protected float
sigma
sigma is the activation treshold value of the BiNeuron.

Fields inherited from class de.webdings.jannis.neuralnet.Neuron

a, connections, fired, net, numberOfConnections, shouldHaveFired

Constructor Summary

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

Method Summary

String
getActivationFunction()
For BiNeurons, this function returns a String containing sigma.
float
getSigma()
void
setSigma(float sigma)
boolean
tresholdReached()
represents the activations function of the neuron.

Methods inherited from class de.webdings.jannis.neuralnet.Neuron

addConnection, addConnection, addConnection, clear, fire, gatherActivation, getA, getActivationFunction, getConnections, getNet, getNumberOfConnections, getShouldHaveFired, hasFired, setConnections, setFired, setShouldHaveFired, tresholdReached

Field Details

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

Constructor Details

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

Parameters:
sigma -

Method Details

getActivationFunction

public String getActivationFunction()
For BiNeurons, this function returns a String containing sigma.
Overrides:
getActivationFunction in interface Neuron

See Also:
Neuron.getActivationFunction()


getSigma

public float getSigma()

Returns:
Returns sigma.


setSigma

public void setSigma(float sigma)

Parameters:
sigma - The value for sigma to set.


tresholdReached

public boolean tresholdReached()
represents the activations function of the neuron.
Overrides:
tresholdReached in interface Neuron

Returns:
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.