The OpenD Programming Language

negativeBinomialInvCDF

Computes the negative binomial inverse cumulative distribution function (InvCDF).

@safe pure nothrow @nogc
size_t
negativeBinomialInvCDF
(
T
)
(
const T q
,
const size_t r
,
const T p
)
if (
isFloatingPoint!T
)

Parameters

q T

value to evaluate InvCDF

r size_t

number of successes until stopping

p T

true probability

Examples

import mir.test: should;
0.9.negativeBinomialInvCDF(6, 3.0 / 4).should == 4;

See Also

Meta