Package libai.common.functions
Class HyperbolicTangent
- java.lang.Object
-
- libai.common.functions.HyperbolicTangent
-
- All Implemented Interfaces:
java.io.Serializable
,Function
public class HyperbolicTangent extends java.lang.Object implements Function
Hyperbolic Tangent. F(x) = tanh(x). The first derivate of tanh(x) = 1-(tanh(x)*tanh(x))- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HyperbolicTangent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
eval(double x)
Function to evaluate.Function
getDerivate()
Evaluate the first derivate of this function f'(x)
-
-
-
Method Detail
-
eval
public double eval(double x)
Description copied from interface:Function
Function to evaluate.
-
getDerivate
public Function getDerivate()
Description copied from interface:Function
Evaluate the first derivate of this function f'(x)- Specified by:
getDerivate
in interfaceFunction
- Returns:
- a new Function object with the derivate function.
-
-