Example usage for org.apache.commons.math.distribution PascalDistributionImpl PascalDistributionImpl

List of usage examples for org.apache.commons.math.distribution PascalDistributionImpl PascalDistributionImpl

Introduction

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

Prototype

public PascalDistributionImpl(int r, double p) 

Source Link

Document

Create a Pascal distribution with the given number of trials and probability of success.

Usage

From source file:org.renjin.stats.internals.Distributions.java

@DataParallel
@Internal/*from  w ww .  j a  v a  2s .co  m*/
public static double pnbinom(@Recycle double x, @Recycle int size, @Recycle double prob, boolean lowerTail,
        boolean logP) {
    return p(new PascalDistributionImpl(size, prob), x, lowerTail, logP);
}