Package smile.ica

Class LogCosh

java.lang.Object
smile.ica.LogCosh
All Implemented Interfaces:
Serializable, DifferentiableFunction, Function

public class LogCosh extends Object implements DifferentiableFunction
A good general-purpose contrast function for ICA.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    f(double x)
    Computes the value of the function at x.
    double
    g(double x)
    Computes the gradient/derivative at x.
    double
    g2(double x)
    Compute the second-order derivative at x.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface smile.math.Function

    apply, inv
  • Constructor Details

    • LogCosh

      public LogCosh()
  • Method Details

    • f

      public double f(double x)
      Description copied from interface: Function
      Computes the value of the function at x.
      Specified by:
      f in interface Function
      Parameters:
      x - a real number.
      Returns:
      the function value.
    • g

      public double g(double x)
      Description copied from interface: DifferentiableFunction
      Computes the gradient/derivative at x.
      Specified by:
      g in interface DifferentiableFunction
      Parameters:
      x - a real number.
      Returns:
      the derivative.
    • g2

      public double g2(double x)
      Description copied from interface: DifferentiableFunction
      Compute the second-order derivative at x.
      Specified by:
      g2 in interface DifferentiableFunction
      Parameters:
      x - a real number.
      Returns:
      the second-order derivative.