Enum LeveneStat.Mode

java.lang.Object
java.lang.Enum<LeveneStat.Mode>
org.bzdev.math.stats.LeveneStat.Mode
All Implemented Interfaces:
Serializable, Comparable<LeveneStat.Mode>
Enclosing class:
LeveneStat

public static enum LeveneStat.Mode extends Enum<LeveneStat.Mode>
The mode for a Levene's test. Levene's original paper used the mean value of each subgroup when computing the array zij used by LeveneStat. For k subgroups indexed by i, with j the index within a subgroup, then for a data set Yij, zij = |Yij - Mi| where Mi is defined as either
  1. the mean of the ith subgroup.
  2. the median of the ith subgroup.
  3. the 10% trimmed mean of the ith subgroup.
See Also:
  • Enum Constant Details

    • MEAN

      public static final LeveneStat.Mode MEAN
      Indicate the use of the mean for the ith subgroup.
    • MEDIAN

      public static final LeveneStat.Mode MEDIAN
      Indicate the use of the median for the ith subgroup.
    • TRIMMED

      public static final LeveneStat.Mode TRIMMED
      Indicate the use of the 10% trimmed mean for the ith subgroup.

      Note: this option needs additional testing.

  • Method Details

    • values

      public static LeveneStat.Mode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static LeveneStat.Mode valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null