Class SigmoidFunction

java.lang.Object
All Implemented Interfaces:
AttributeObject, InterfaceObject, NamedObject, TreeObject, CleanableObject

public class SigmoidFunction
extends Function
As the name suggests... :P Evaluates:

y = (1 - e^-kx) / (1 + e^-kx)

where k is a constant determining the shape, and evaluate(0) = 0
Author:
Andrew Reid
  • Constructor Details

    • SigmoidFunction

      public SigmoidFunction()
    • SigmoidFunction

      public SigmoidFunction​(double k)
  • Method Details

    • init

      protected void init()
      Overrides:
      init in class Function
    • getK

      public double getK()
    • setK

      public void setK​(double k)
    • evaluate

      public double evaluate​(double d)
      Description copied from class: Function
      Evaluate function with a single parameter d
      Specified by:
      evaluate in class Function
      Returns:
      result of the evaluation
    • evaluate

      public double[] evaluate​(double[] d)
      Description copied from class: Function
      Evaluate function with multiple parameters d
      Specified by:
      evaluate in class Function
      Returns:
      result of the evaluation
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class Function