public static final class math.statistics extends StaticObject
| Modifier and Type | Method and Description |
|---|---|
static double |
max(double[] values)
Return the maximum value of the given double array.
|
static double |
min(double[] values)
Return the minimum value of the given double array.
|
static double |
sum(double[] values)
Implementation of the
Kahan summation algorithm.
|
static long |
sum(long[] values)
Add the values of the given array.
|
public static double min(double[] values)
values - the double array.Double.NaN if the given array is
empty.NullPointerException - if the given array is null.public static double max(double[] values)
values - the double array.Double.NaN if the given array is
empty.NullPointerException - if the given array is null.public static double sum(double[] values)
values - the values to sum up.values.NullPointerException - if the given array is null.public static long sum(long[] values)
values - the values to add.NullPointerException - if the values are null;© 2007-2013 Franz Wilhelmstötter (2013-12-18 20:17)