saaps.ann.mlff
Class TanhNeuron

java.lang.Object
  |
  +--saaps.ann.mlff.Neuron
        |
        +--saaps.ann.mlff.TanhNeuron

public class TanhNeuron
extends Neuron

Implementation of the tanh neuron. The output from the neuron lies in the range [-1,+1].


Constructor Summary
TanhNeuron()
          Creates new TanhNeuron
TanhNeuron(Weights w)
          Create a tanh neuron from a set of weights and bias.
 
Method Summary
 Data transFun(Data x)
          The tanh transfer function.
 
Methods inherited from class saaps.ann.mlff.Neuron
getOutput, setInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TanhNeuron

public TanhNeuron()
Creates new TanhNeuron

TanhNeuron

public TanhNeuron(Weights w)
Create a tanh neuron from a set of weights and bias.
Parameters:
w - The weights and bias
Method Detail

transFun

public Data transFun(Data x)
The tanh transfer function.
Overrides:
transFun in class Neuron
Parameters:
x - The input to the transfer function
Returns:
The output from the transfer function