mulan.classifier.neural.model
Class ActivationTANH

java.lang.Object
  extended by mulan.classifier.neural.model.ActivationFunction
      extended by mulan.classifier.neural.model.ActivationTANH
All Implemented Interfaces:
Serializable

public class ActivationTANH
extends ActivationFunction

Implements the hyperbolic tangent activation function. The function output values are from interval <-1,1>.

Version:
2012.02.27
Author:
Jozef Vilcek
See Also:
Serialized Form

Field Summary
static double MAX
          Maximum value of function
static double MIN
          Minimum value of function
 
Constructor Summary
ActivationTANH()
           
 
Method Summary
 double activate(double input)
          Computes an output value of the function for given input.
 double derivative(double input)
          Computes an output value of function derivation for given input.
 double getMax()
          Gets the maximum value the function can output.
 double getMin()
          Gets the minimum value the function can output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX

public static final double MAX
Maximum value of function

See Also:
Constant Field Values

MIN

public static final double MIN
Minimum value of function

See Also:
Constant Field Values
Constructor Detail

ActivationTANH

public ActivationTANH()
Method Detail

activate

public double activate(double input)
Description copied from class: ActivationFunction
Computes an output value of the function for given input.

Specified by:
activate in class ActivationFunction
Parameters:
input - the input value to the function
Returns:
the output value

derivative

public double derivative(double input)
Description copied from class: ActivationFunction
Computes an output value of function derivation for given input.

Specified by:
derivative in class ActivationFunction
Parameters:
input - the input value to the function
Returns:
the output value

getMax

public double getMax()
Description copied from class: ActivationFunction
Gets the maximum value the function can output.

Specified by:
getMax in class ActivationFunction
Returns:
maximum value of the function

getMin

public double getMin()
Description copied from class: ActivationFunction
Gets the minimum value the function can output.

Specified by:
getMin in class ActivationFunction
Returns:
minimum value of the function