Example usage for org.apache.commons.math.distribution DistributionFactory createNormalDistribution

List of usage examples for org.apache.commons.math.distribution DistributionFactory createNormalDistribution

Introduction

In this page you can find the example usage for org.apache.commons.math.distribution DistributionFactory createNormalDistribution.

Prototype

public abstract NormalDistribution createNormalDistribution();

Source Link

Document

Create a new normal distribution with mean zero and standard deviation one.

Usage

From source file:clus.pruning.C45Pruner.java

public double computeZScore() throws ClusException {
    try {/*  w  w  w.j ava2s .  c om*/
        DistributionFactory distributionFactory = DistributionFactory.newInstance();
        return distributionFactory.createNormalDistribution()
                .inverseCumulativeProbability(1 - m_ConfidenceFactor);
    } catch (MathException e) {
        throw new ClusException(e.getMessage());
    }
}