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 Details

    • LogCosh

      public LogCosh()
      Constructor.
  • 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.