Esta página aún no se ha traducido para esta versión. Puede ver la versión más reciente de esta página en inglés.

poisspdf

Poisson probability density function

Sintaxis

Y = poisspdf(X,lambda)

Description

Y = poisspdf(X,lambda) computes the Poisson pdf at each of the values in X using mean parameters in lambda. X and lambda can 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. The parameters in lambda must all be positive.

The Poisson pdf is

f(x|λ)=λxx!eλ;x=0,1,2,,.

The density function is zero unless x is an integer.

Examples

A computer hard disk manufacturer has observed that flaws occur randomly in the manufacturing process at the average rate of two flaws in a 4 GB hard disk and has found this rate to be acceptable. What is the probability that a disk will be manufactured with no defects?

In this problem, λ = 2 and x = 0.

p = poisspdf(0,2)
p =
  0.1353

Capacidades ampliadas

Generación de código C/C++
Generar código C y C++ utilizando MATLAB® Coder™.

Introducido antes de R2006a