Class Aggregators

java.lang.Object
uk.ac.starlink.ttools.task.Aggregators

public class Aggregators extends Object
Provides instances of the Aggregator interface.
Since:
16 Nov 2022
Author:
Mark Taylor
  • Field Details

    • COUNT

      public static final Aggregator COUNT
      Aggregator for counting items, with int-valued counter.
    • NGOOD

      public static final Aggregator NGOOD
      Aggregator for counting non-blank items, with int-valued counter.
    • SUM

      public static final Aggregator SUM
      Aggregator for summing items.
    • MEAN

      public static final Aggregator MEAN
      Aggregator that calculates the mean.
    • MEDIAN

      public static final Aggregator MEDIAN
      Aggregator that calculates the median.
    • SAMPLE_STDEV

      public static final Aggregator SAMPLE_STDEV
      Aggregator that calculates the sample standard deviation.
    • POP_STDEV

      public static final Aggregator POP_STDEV
      Aggregator that calculates the population standard deviation.
    • MAX

      public static final Aggregator MAX
      Aggregator that calculates the maximum.
    • MIN

      public static final Aggregator MIN
      Aggregator that calculates the minimum.
    • ARRAY_NOBLANKS

      public static final Aggregator ARRAY_NOBLANKS
      Aggregator that assembles an array of all non-blank inputs.
    • ARRAY_WITHBLANKS

      public static final Aggregator ARRAY_WITHBLANKS
      Aggregator that assembles an array of all inputs.
    • COUNT_LONG

      public static final Aggregator COUNT_LONG
      Aggregator for counting items, with long-valued counter.
    • NGOOD_LONG

      public static final Aggregator NGOOD_LONG
      Aggregator for counting non-blank items, with long-valued counter.
  • Method Details

    • getAggregators

      public static Aggregator[] getAggregators()
      Returns an array of useful Aggregator instances.
      Returns:
      aggregator array