org.codehaus.gpars

groovyx.gpars.extra166y
[Java] Interface ParallelLongArray.SummaryStatistics


public static interface ParallelLongArray.SummaryStatistics

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


Method Summary
double average()

int indexOfMax()

Returns the sum of all elements

int indexOfMin()

Returns the index of the maximum element, or -1 if empty

long max()

Returns the index of the minimum element, or -1 if empty

long min()

Returns the maximum element, or Long.MIN_VALUE if empty

int size()

long sum()

Returns the arithmetic average of all elements

 

Method Detail

average

public double average()


indexOfMax

public int indexOfMax()
Returns the sum of all elements


indexOfMin

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


max

public long max()
Returns the index of the minimum element, or -1 if empty


min

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


size

public int size()


sum

public long sum()
Returns the arithmetic average of all elements


 

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