public class Statistics extends Object
| Modifier and Type | Method and Description |
|---|---|
static double |
mean(Collection<? extends Number> samples)
Computes the average of a set of samples.
|
static double |
standardDeviation(double mean,
Collection<? extends Number> samples)
Computes the standard deviation of a set of samples.
|
public static double mean(Collection<? extends Number> samples)
null values will be
ignored, not contributing to the average in any way.samples - must have at least one samplepublic static double standardDeviation(double mean,
Collection<? extends Number> samples)
null values will be
ignored, not contributing to the deviation in any way. This does not use Bessel's correction.Copyright © 2016. All rights reserved.