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: 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

Example:
library("distribs")
pdfpois(#(0,3,5,Inf), 3)

Result:
Contents of ret
[1,]  0.049787
[2,]  0.22404
[3,]  0.10082
[4,]        0
Example:
library("distribs")
(0:4)~pdfpois(0:4, 4)

Result:
Contents of _tmp
[1,]  0  0.018316
[2,]  1  0.073263
[3,]  2  0.14653
[4,]  3  0.19537
[5,]  4  0.19537



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