@Test public void shouldGiveTheVariance() { assertEquals(variance(values), stats.variance(), 1E-8); }
public double variance() { assertDataPresent(); return M2 / count; }
Statistics implements Serializable { public double variance() { assertDataPresent(); return M2 / count; } }
Statistics implements Serializable { public double variance() { assertDataPresent(); return M2 / count; } private  Statistics();  Statistics(final double... values);  Statistics(final Collection<? extends Number> collection);  Statistics(final Statistics statistics); }
Statistics implements Serializable { public double variance() { assertDataPresent(); return M2 / count; } private  Statistics();  Statistics(final double... values);  Statistics(final Collection<? extends Number> collection);  Statistics(final Statistics statistics); double max(); double min(); long count(); double sum(); double average(); double variance(); double standardDeviation(); }
Statistics implements Serializable { public double variance() { assertDataPresent(); return M2 / count; } private  Statistics();  Statistics(final double... values);  Statistics(final Collection<? extends Number> collection);  Statistics(final Statistics statistics); double max(); double min(); long count(); double sum(); double average(); double variance(); double standardDeviation(); static final Statistics EMPTY; }