quarks.analytics.math3.stat

Enum Regression

  • java.lang.Object
    • java.lang.Enum<Regression>
      • quarks.analytics.math3.stat.Regression
    • Enum Constant Summary

      Enum Constants 
      Enum Constant and Description
      SLOPE
      Calculate the slope of a single variable.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static Regression valueOf(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Regression[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface quarks.function.Supplier

        get
    • Enum Constant Detail

      • SLOPE

        public static final Regression SLOPE
        Calculate the slope of a single variable. The slope is calculated using the first order of a ordinary least squares linear regression. The list of values for the single single variable are processed as Y-values that are evenly spaced on the X-axis.
        This is useful as a simple determination if the variable is increasing or decreasing.
        The slope value is represented as a double with the key SLOPE in the aggregate result.
        If the window to be aggregated contains less than two values then no regression is performed.
    • Method Detail

      • values

        public static Regression[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Regression c : Regression.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Regression valueOf(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null

Copyright IBM 2015,2016 - 2f6ad0e-20160307-0902