ncx2cdf
Noncentral chi-square cumulative distribution function
Syntax
p = ncx2cdf(x,v,delta)
p = ncx2cdf(x,v,delta,'upper')
Description
p = ncx2cdf(x,v,delta)
computes the noncentral chi-square cdf at each value inx
using the corresponding degrees of freedom inv
and positive noncentrality parameters indelta
.x
,v
, anddelta
can be vectors, matrices, or multidimensional arrays that all have the same size, which is also the size ofp
. A scalar input forx
,v
, ordelta
is expanded to a constant array with the same dimensions as the other inputs.
p = ncx2cdf(x,v,delta,'upper')
returns the complement of the noncentral chi-square cdf at each value inx
, using an algorithm that more accurately computes the extreme upper tail probabilities.
Some texts refer to this distribution as the generalized Rayleigh, Rayleigh-Rice, or Rice distribution.
The noncentral chi-square cdf is
Examples
References
[1] Johnson, N., and S. Kotz.Distributions in Statistics: Continuous Univariate Distributions-2.Hoboken, NJ: John Wiley & Sons, Inc., 1970, pp. 130–148.