java.lang.Object
java.lang.Enum<NaNPolicy>
org.apache.commons.statistics.descriptive.NaNPolicy
All Implemented Interfaces:
Serializable, Comparable<NaNPolicy>

public enum NaNPolicy extends Enum<NaNPolicy>
Defines the policy for NaN values found in data.
Since:
1.1
  • Enum Constant Details

    • INCLUDE

      public static final NaNPolicy INCLUDE
      NaNs are included in the data.
    • EXCLUDE

      public static final NaNPolicy EXCLUDE
      NaNs are excluded from the data.
    • ERROR

      public static final NaNPolicy ERROR
      NaNs result in an exception.
  • Constructor Details

    • NaNPolicy

      private NaNPolicy()
  • Method Details

    • values

      public static NaNPolicy[] 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 NaNPolicy 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