Example usage for org.apache.commons.math3.stat.descriptive SummaryStatistics getVarianceImpl

List of usage examples for org.apache.commons.math3.stat.descriptive SummaryStatistics getVarianceImpl

Introduction

In this page you can find the example usage for org.apache.commons.math3.stat.descriptive SummaryStatistics getVarianceImpl.

Prototype

public StorelessUnivariateStatistic getVarianceImpl() 

Source Link

Document

Returns the currently configured variance implementation

Usage

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);//from ww  w  .  j av  a 2s .c om
        return newVar.getResult();
    }
    return stats.getVariance();
}