Documentation

poissinv

Poisson inverse cumulative distribution function

Syntax

X = poissinv(P,lambda)

Description

X = poissinv(P,lambda)returns the smallest valueXsuch that the Poisson cdf evaluated atXequals or exceedsP, using mean parameters inlambda.Pandlambdacan be vectors, matrices, or multidimensional arrays that all have the same size. A scalar input is expanded to a constant array with the same dimensions as the other input.

Examples

If the average number of defects (λ) is two, what is the 95th percentile of the number of defects?

poissinv(0.95,2) ans = 5

What is the median number of defects?

median_defects = poissinv(0.50,2) median_defects = 2

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Introduced before R2006a

Was this topic helpful?