Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

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

Note:

Example:
library("distribs")
Q = qpois(0.7622,5)
Q

Result:
Contents of Q

[1,]        7
Example:
library("distribs")
randomize(100)
prb = uniform(3,3)
Q = qpois(prb,10)
Q

Result:
Contents of Q

[1,]        5       12       10
[2,]        7        8       14
[3,]        5       12       12
Example:
library("distribs")
prb = #(1, 0.9993, 0.1730,0.0029, 0, -0.4, NaN)
Q = qpois(prb,8)
Q

Result:
Contents of Q

[1,]     +INF
[2,]       18
[3,]        5
[4,]        1
[5,]        0
[6,]     +NAN
[7,]     +NAN



Author: P. Cizek, 20041002 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006