Summary statistics for a possibly bounded, filtered, and/or mapped ParallelDoubleArray.
| Type Params | Return Type | Name and description |
|---|---|---|
|
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 |
Returns the arithmetic average of all elements
Returns the index of the maximum element, or -1 if empty
Returns the index of the minimum element, or -1 if empty
Returns the maximum element, or -Double.MAX_VALUE if empty
Returns the minimum element, or Double.MAX_VALUE if empty
Returns the number of elements
Returns the sum of all elements