Library: | distribs |
See also: | pdfpois cdfpois ranpois |
Quantlet: | qpois | |
Description: | returns the inverse of a Poisson-distribution function for elements of an up to 8 dimensional array. |
Usage: | y = qpois(x,lambda) | |
Input: | ||
x | d1 x ... x dm array, the probabilities (0 <= x <= 1) | |
lambda | scalar, parameter of Poisson distribution (0 < lambda) | |
Output: | ||
y | d1 x ... x dm array, quantiles of the Poisson distribution |
library("distribs") Q = qpois(0.7622,5) Q
Contents of Q [1,] 7
library("distribs") randomize(100) prb = uniform(3,3) Q = qpois(prb,10) Q
Contents of Q [1,] 5 12 10 [2,] 7 8 14 [3,] 5 12 12
library("distribs") prb = #(1, 0.9993, 0.1730,0.0029, 0, -0.4, NaN) Q = qpois(prb,8) Q
Contents of Q [1,] +INF [2,] 18 [3,] 5 [4,] 1 [5,] 0 [6,] +NAN [7,] +NAN