public void testMomentSmallSamples() {
UnivariateStatistic stat = getUnivariateStatistic();
if (stat instanceof SecondMoment) {
SecondMoment moment = (SecondMoment) getUnivariateStatistic();
assertTrue(Double.isNaN(moment.getResult()));
moment.increment(1d);
assertEquals(0d, moment.getResult(), 0);
}
}
/**