Example usage for org.apache.commons.math3.distribution LogNormalDistribution inverseCumulativeProbability

List of usage examples for org.apache.commons.math3.distribution LogNormalDistribution inverseCumulativeProbability

Introduction

In this page you can find the example usage for org.apache.commons.math3.distribution LogNormalDistribution inverseCumulativeProbability.

Prototype

public double inverseCumulativeProbability(final double p) throws OutOfRangeException 

Source Link

Document

The default implementation returns
  • #getSupportLowerBound() for p = 0 ,
  • #getSupportUpperBound() for p = 1 .

Usage

From source file:fr.assoba.open.perf.GenDist.java

public static void main(String[] args) {
    // Magic number !
    LogNormalDistribution distribution = new LogNormalDistribution(6.73, 2.12);
    ArrayList<Long> list = new ArrayList<Long>();
    for (int i = 0; i < 1023; i++) {
        double d = (1.0 * i) / 1023.0;
        list.add((long) (100 * distribution.inverseCumulativeProbability(d)));
    }/* w w w .  j  a  va 2  s  .c  om*/
    System.out.print(Joiner.on(",").join(list));

}