Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
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 © 2000–2016 AO Industries, Inc.. All rights reserved.