Enum Class LongToWide.Aggregation

java.lang.Object
java.lang.Enum<LongToWide.Aggregation>
edu.cmu.tetrad.data.LongToWide.Aggregation
All Implemented Interfaces:
Serializable, Comparable<LongToWide.Aggregation>, Constable
Enclosing class:
LongToWide

public static enum LongToWide.Aggregation extends Enum<LongToWide.Aggregation>
How multiple long rows for the same (unit, level) combination are combined into one wide cell.
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The number of long rows for the combination, as a continuous column (the value variable's own values are ignored; zero rows gives 0, not missing).
    Throw an exception naming the number of duplicated combinations.
    Keep the first row in file order.
    Keep the last row in file order.
    The maximum of the values (continuous only; missing values ignored).
    The mean of the values (continuous only; missing values ignored).
    The minimum of the values (continuous only; missing values ignored).
    The sum of the values (continuous only; missing values ignored).
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • FAIL

      public static final LongToWide.Aggregation FAIL
      Throw an exception naming the number of duplicated combinations. The default.
    • FIRST

      public static final LongToWide.Aggregation FIRST
      Keep the first row in file order.
    • LAST

      public static final LongToWide.Aggregation LAST
      Keep the last row in file order.
    • MEAN

      public static final LongToWide.Aggregation MEAN
      The mean of the values (continuous only; missing values ignored).
    • MIN

      public static final LongToWide.Aggregation MIN
      The minimum of the values (continuous only; missing values ignored).
    • MAX

      public static final LongToWide.Aggregation MAX
      The maximum of the values (continuous only; missing values ignored).
    • SUM

      public static final LongToWide.Aggregation SUM
      The sum of the values (continuous only; missing values ignored).
    • COUNT

      public static final LongToWide.Aggregation COUNT
      The number of long rows for the combination, as a continuous column (the value variable's own values are ignored; zero rows gives 0, not missing).
  • Method Details

    • values

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

      public static LongToWide.Aggregation valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null