Library: | distribs |
See also: | cdfpois |
Quantlet: | pdfpois | |
Description: | computes the probability density function of a Poisson distribution Po(lambda) at a grid x |
Usage: | ret = pdfpois (x, lambda) | |
Input: | ||
x | array of integer numbers (0<=x), input values | |
lambda | positive scalar or array of the same dimension as x, parameter of Poisson distribution (0<lambda) | |
Output: | ||
ret | array, computed probabilities |
library("distribs") pdfpois(#(0,3,5,Inf), 3)
Contents of ret [1,] 0.049787 [2,] 0.22404 [3,] 0.10082 [4,] 0
library("distribs") (0:4)~pdfpois(0:4, 4)
Contents of _tmp [1,] 0 0.018316 [2,] 1 0.073263 [3,] 2 0.14653 [4,] 3 0.19537 [5,] 4 0.19537