Class LogCosh
java.lang.Object
smile.ica.LogCosh
- All Implemented Interfaces:
Serializable, DifferentiableFunction, Function
A good general-purpose contrast function for ICA.
The function is G(u) = log(cosh(u)), computed in a numerically
stable manner to avoid overflow for large |u|.
- See Also:
-
Field Summary
Fields inherited from interface DifferentiableFunction
logger -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface DifferentiableFunction
root
-
Constructor Details
-
LogCosh
public LogCosh()Constructor.
-
-
Method Details
-
f
-
g
public double g(double x) Description copied from interface:DifferentiableFunctionComputes the gradient/derivative at x.- Specified by:
gin interfaceDifferentiableFunction- Parameters:
x- a real number.- Returns:
- the derivative.
-
g2
public double g2(double x) Description copied from interface:DifferentiableFunctionCompute the second-order derivative at x.- Specified by:
g2in interfaceDifferentiableFunction- Parameters:
x- a real number.- Returns:
- the second-order derivative.
-
toString
-