List of usage examples for org.apache.commons.math3.stat.descriptive.moment Variance setBiasCorrected
public void setBiasCorrected(boolean biasCorrected)
From source file:org.apereo.portal.events.aggr.stat.JpaStatisticalSummary.java
/** * Returns the <a href="http://en.wikibooks.org/wiki/Statistics/Summary/Variance"> * population variance</a> of the values that have been added. * * <p>Double.NaN is returned if no values have been added.</p> * * @return the population variance// w w w . j a v a 2 s . c om */ public double getPopulationVariance() { Variance populationVariance = new Variance(_getSecondMoment()); populationVariance.setBiasCorrected(false); return populationVariance.getResult(); }
From source file:org.eclipse.dataset.AbstractDataset.java
@Override public Number variance(boolean isDatasetWholePopulation) { SummaryStatistics stats = getStatistics(false); if (isDatasetWholePopulation) { Variance newVar = (Variance) stats.getVarianceImpl().copy(); newVar.setBiasCorrected(false); return newVar.getResult(); }/*from w w w . j a va 2s. c o m*/ return stats.getVariance(); }