groovyx.gpars.extra166y
Interface ParallelLongArray.SummaryStatistics

All Known Implementing Classes:
PAS.FJLStats
Enclosing class:
ParallelLongArray

public static interface ParallelLongArray.SummaryStatistics

Summary statistics for a possibly bounded, filtered, and/or mapped ParallelLongArray.


Method Summary
 double average()
          Returns the arithmetic average of all elements
 int indexOfMax()
          Returns the index of the maximum element, or -1 if empty
 int indexOfMin()
          Returns the index of the minimum element, or -1 if empty
 long max()
          Returns the maximum element, or Long.MIN_VALUE if empty
 long min()
          Returns the minimum element, or Long.MAX_VALUE if empty
 int size()
          Returns the number of elements
 long sum()
          Returns the sum of all elements
 

Method Detail

size

int size()
Returns the number of elements


min

long min()
Returns the minimum element, or Long.MAX_VALUE if empty


max

long max()
Returns the maximum element, or Long.MIN_VALUE if empty


indexOfMin

int indexOfMin()
Returns the index of the minimum element, or -1 if empty


indexOfMax

int indexOfMax()
Returns the index of the maximum element, or -1 if empty


sum

long sum()
Returns the sum of all elements


average

double average()
Returns the arithmetic average of all elements


Copyright © 2008–2012 Václav Pech. All Rights Reserved.