Example usage for org.apache.commons.math.random RandomData nextPoisson

List of usage examples for org.apache.commons.math.random RandomData nextPoisson

Introduction

In this page you can find the example usage for org.apache.commons.math.random RandomData nextPoisson.

Prototype

long nextPoisson(double mean);

Source Link

Document

Generates a random value from the Poisson distribution with the given mean.

Usage

From source file:org.tolven.gen.model.PoissonValueGen.java

public double generate(RandomData rng) {
    return rng.nextPoisson(mean);
}