The Encog Project

org.encog.neural.activation
Class ActivationTANH

java.lang.Object
  extended by org.encog.neural.activation.ActivationTANH
All Implemented Interfaces:
java.io.Serializable, ActivationFunction, EncogPersistedObject

public class ActivationTANH
extends java.lang.Object
implements ActivationFunction

ActivationTANH: The hyperbolic tangent activation function takes the curved shape of the hyperbolic tangent. This activation function produces both positive and negative output. Use this activation function if both negative and positive output is desired.

See Also:
Serialized Form

Constructor Summary
ActivationTANH()
           
 
Method Summary
 double activationFunction(double d)
          A threshold function for a neural network.
 double derivativeFunction(double d)
          Some training methods require the derivative.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivationTANH

public ActivationTANH()
Method Detail

activationFunction

public double activationFunction(double d)
A threshold function for a neural network.

Specified by:
activationFunction in interface ActivationFunction
Parameters:
d - The input to the function.
Returns:
The output from the function.

derivativeFunction

public double derivativeFunction(double d)
Some training methods require the derivative.

Specified by:
derivativeFunction in interface ActivationFunction
Parameters:
d - The input.
Returns:
The output.

The Encog Project