dlife.nn
Class UnipolarNeuron
java.lang.Object
dlife.nn.UnipolarNeuron
- All Implemented Interfaces:
- Neuron, Serializable
public class UnipolarNeuron
- extends Object
- implements Neuron
Implementation of a unipolar transfer function for a Neuron. This Neuron has the transfer function:
- 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 UnipolarNeuron transfer function does not exist. |
double |
f(double x)
The transfer function of the UnipolarNeuron. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnipolarNeuron
public UnipolarNeuron()
dfdx
public double dfdx(double x)
- The derivative of the UnipolarNeuron 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 UnipolarNeuron.
- Specified by:
f in interface Neuron
- Parameters:
x - the input to this Neuron.
- Returns:
- the output of the unipolar neuron for input x.