org.jscience.computing.ai.neurocomputing
Class Activation.Tanh

java.lang.Object
  extended by org.jscience.computing.ai.neurocomputing.Activation.Tanh
All Implemented Interfaces:
Activation
Enclosing interface:
Activation

public static class Activation.Tanh
extends java.lang.Object
implements Activation

Hyperbolic tangent activation function.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jscience.computing.ai.neurocomputing.Activation
Activation.None, Activation.Sigmoid, Activation.Stepped, Activation.Tanh
 
Constructor Summary
Activation.Tanh()
           
 
Method Summary
 double function(double in)
          Return f(x) = ex-e-x) /(ex+e-x.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Activation.Tanh

public Activation.Tanh()
Method Detail

function

public double function(double in)
Return f(x) = ex-e-x) /(ex+e-x.

Specified by:
function in interface Activation
Parameters:
in - the input weight.
Returns:
tanh activation result.