Example usage for org.apache.commons.math3.stat.descriptive StorelessUnivariateStatistic clear

List of usage examples for org.apache.commons.math3.stat.descriptive StorelessUnivariateStatistic clear

Introduction

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

Prototype

void clear();

Source Link

Document

Clears the internal state of the Statistic

Usage

From source file:gedi.util.datastructure.array.functions.StorelessUnivariateStatisticAdapter.java

public StorelessUnivariateStatisticAdapter(StorelessUnivariateStatistic commons) {
    this.commons = commons.copy();
    commons.clear();
}

From source file:org.apache.edgent.analytics.math3.stat.Statistic.java

private Statistic(StorelessUnivariateStatistic statImpl) {
    this.statImpl = statImpl;
    statImpl.clear();
}

From source file:org.apache.edgent.analytics.math3.stat.Statistic2.java

private Statistic2(StorelessUnivariateStatistic statImpl) {
    this.statImpl = statImpl;
    statImpl.clear();
}

From source file:org.drugis.mtc.summary.SummaryUtil.java

public static double evaluate(StorelessUnivariateStatistic stat, List<Double> vals) {
    stat.clear();
    for (Double d : vals) {
        stat.increment(d);/*from  ww  w  . ja v  a2s  .c o m*/
    }
    return stat.getResult();
}