dlife.nn
Class BipolarNeuron
java.lang.Object
dlife.nn.BipolarNeuron
- All Implemented Interfaces:
- Neuron, Serializable
public class BipolarNeuron
- extends Object
- implements Neuron
Implementation of a bipolar transfer function for a Neuron. This neuron has the transfer function:
- If x < 0 then the output is -1
- If x == 0 then the output is 0
- If x > 0 then the output is 1
- Version:
- Feb 2, 2007
- Author:
- Grant Braught, Dickinson College
- See Also:
- Serialized Form
|
Method Summary |
double |
dfdx(double x)
The derivative of the BipolarNeuron transfer function does not exist. |
double |
f(double x)
The transfer function of the BipolarNeuron. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BipolarNeuron
public BipolarNeuron()
dfdx
public double dfdx(double x)
- The derivative of the BipolarNeuron transfer function does not exist.
- Specified by:
dfdx in interface Neuron
- Parameters:
x - the input to the derivative.
- Returns:
- the output of the derivative.
- Throws:
UnsupportedOperationException - always.
f
public double f(double x)
- The transfer function of the BipolarNeuron.
- Specified by:
f in interface Neuron
- Parameters:
x - the input to this Neuron.
- Returns:
- the output of the bipolar neuron for input x.