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

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

Introduction

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

Prototype

public void setVarianceImpl(StorelessUnivariateStatistic varianceImpl) throws MathIllegalStateException 

Source Link

Document

Sets the implementation for the variance.

Usage

From source file:edu.uiowa.icts.bluebutton.json.view.StatsFinder.java

private SummaryStatistics findStats() {
    SummaryStatistics stats = new SummaryStatistics();
    stats.setVarianceImpl(new Variance(false));
    for (IGetStats d : this.list) {
        if (d.getDoubleValue() != null) {
            stats.addValue(d.getDoubleValue());
        }/* w  w w  .  j  a va2 s  .  c o  m*/
    }
    return stats;
}