groovyx.gpars.extra166y
Interface ParallelDoubleArray.SummaryStatistics

All Known Implementing Classes:
PAS.FJDStats
Enclosing class:
ParallelDoubleArray

public static interface ParallelDoubleArray.SummaryStatistics

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


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
 double max()
          Returns the maximum element, or -Double.MAX_VALUE if empty
 double min()
          Returns the minimum element, or Double.MAX_VALUE if empty
 int size()
          Returns the number of elements
 double sum()
          Returns the sum of all elements
 

Method Detail

size

int size()
Returns the number of elements


min

double min()
Returns the minimum element, or Double.MAX_VALUE if empty


max

double max()
Returns the maximum element, or -Double.MAX_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

double 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.