The R Project SVN R

Rev

Rev 88603 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 88603 Rev 90223
Line 1... Line 1...
1
% File src/library/stats/man/Hypergeometric.Rd
1
% File src/library/stats/man/Hypergeometric.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2023 R Core Team
3
% Copyright 1995-2026 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{Hypergeometric}
6
\name{Hypergeometric}
7
\alias{Hypergeometric}
7
\alias{Hypergeometric}
8
\alias{dhyper}
8
\alias{dhyper}
Line 75... Line 75...
75
  hypergeometric has smaller variance unless \eqn{k = 1}).
75
  hypergeometric has smaller variance unless \eqn{k = 1}).
76
 
76
 
77
  The quantile is defined as the smallest value \eqn{x} such that
77
  The quantile is defined as the smallest value \eqn{x} such that
78
  \eqn{F(x) \ge p}, where \eqn{F} is the distribution function.
78
  \eqn{F(x) \ge p}, where \eqn{F} is the distribution function.
79
 
79
 
80
  In \code{rhyper()}, if one of \eqn{m, n, k} exceeds \code{\link{.Machine}$integer.max},
80
  In \code{rhyper()}, if \eqn{m+n} or \eqn{k} exceeds \code{\link{.Machine}$integer.max},
81
  currently the equivalent of \code{qhyper(runif(nn), m,n,k)} is used
81
  currently the equivalent of \code{qhyper(runif(nn), m,n,k)} is used
82
  which is comparably slow while instead a binomial approximation may be
82
  which is comparably slow while instead a binomial approximation may be
83
  considerably more efficient.
83
  considerably more efficient.
84
}
84
}
85
\source{
85
\source{