The R Project SVN R

Rev

Rev 61160 | Rev 67599 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 61160 Rev 61975
Line 1... Line 1...
1
% File src/library/stats/man/Poisson.Rd
1
% File src/library/stats/man/Poisson.Rd
2
% Part of the R package, http://www.R-project.org
2
% Part of the R package, http://www.R-project.org
3
% Copyright 1995-2009 R Core Team
3
% Copyright 1995-2013 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{Poisson}
6
\name{Poisson}
7
\alias{Poisson}
7
\alias{Poisson}
8
\alias{dpois}
8
\alias{dpois}
Line 35... Line 35...
35
  \code{ppois} gives the (log) distribution function,
35
  \code{ppois} gives the (log) distribution function,
36
  \code{qpois} gives the quantile function, and
36
  \code{qpois} gives the quantile function, and
37
  \code{rpois} generates random deviates.
37
  \code{rpois} generates random deviates.
38
 
38
 
39
  Invalid \code{lambda} will result in return value \code{NaN}, with a warning.
39
  Invalid \code{lambda} will result in return value \code{NaN}, with a warning.
-
 
40
 
-
 
41
  The length of the result is determined by \code{n} for
-
 
42
  \code{rpois}, and is the maximum of the lengths of the
-
 
43
  numerical parameters for the other functions.  
-
 
44
  
-
 
45
  The numerical parameters other than \code{n} are recycled to the
-
 
46
  length of the result.  Only the first elements of the logical
-
 
47
  parameters are used.
40
}
48
}
41
\details{
49
\details{
42
  The Poisson distribution has density
50
  The Poisson distribution has density
43
%-- please leave the linebreaking for the next two ! --
51
%-- please leave the linebreaking for the next two ! --
44
  \deqn{p(x) = \frac{\lambda^x e^{-\lambda}}{x!}}{p(x) = \lambda^x exp(-\lambda)/x!}
52
  \deqn{p(x) = \frac{\lambda^x e^{-\lambda}}{x!}}{p(x) = \lambda^x exp(-\lambda)/x!}