Package extra166y

Interface ParallelLongArray.SummaryStatistics

Enclosing class:
ParallelLongArray

public static interface ParallelLongArray.SummaryStatistics
Summary statistics for a possibly bounded, filtered, and/or mapped ParallelLongArray.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Return the arithmetic average of all elements
    int
    Return the index of the maximum element, or -1 if empty
    int
    Return the index of the minimum element, or -1 if empty
    long
    max()
    Return the maximum element, or Long.MIN_VALUE if empty
    long
    min()
    Return the minimum element, or Long.MAX_VALUE if empty
    int
    Return the number of elements
    long
    sum()
    Return the sum of all elements
  • Method Details

    • size

      int size()
      Return the number of elements
    • min

      long min()
      Return the minimum element, or Long.MAX_VALUE if empty
    • max

      long max()
      Return the maximum element, or Long.MIN_VALUE if empty
    • indexOfMin

      int indexOfMin()
      Return the index of the minimum element, or -1 if empty
    • indexOfMax

      int indexOfMax()
      Return the index of the maximum element, or -1 if empty
    • sum

      long sum()
      Return the sum of all elements
    • average

      double average()
      Return the arithmetic average of all elements