Class SymmetricSign

  • All Implemented Interfaces:
    java.io.Serializable, Function

    public class SymmetricSign
    extends java.lang.Object
    implements Function
    Symmetric Signum function F(x) = -1 if x < 0 or 1 if x >= 1 This function is not derivable.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      SymmetricSign()  
    • 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)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SymmetricSign

        public SymmetricSign()
    • Method Detail

      • eval

        public double eval​(double x)
        Description copied from interface: Function
        Function to evaluate.
        Specified by:
        eval in interface Function
        Parameters:
        x - the input value
        Returns:
        f(x)
      • getDerivate

        public Function getDerivate()
        Description copied from interface: Function
        Evaluate the first derivate of this function f'(x)
        Specified by:
        getDerivate in interface Function
        Returns:
        a new Function object with the derivate function.