nctrnd
Noncentraltrandom numbers
Syntax
R = nctrnd(V,DELTA)
R = nctrnd(V,DELTA,m,n,...)
R = nctrnd(V,DELTA,[m,n,...])
Description
R = nctrnd(V,DELTA)
returns a matrix of random numbers chosen from the noncentral T distribution using the corresponding degrees of freedom inV
and noncentrality parameters inDELTA
.V
andDELTA
可以是向量,矩阵,或多维arra吗ys. A scalar input forV
orDELTA
is expanded to a constant array with the same dimensions as the other input.
R = nctrnd(V,DELTA,m,n,...)
orR = nctrnd(V,DELTA,[m,n,...])
generates anm
-by-n
-by-... array. TheV
,DELTA
parameters can each be scalars or arrays of the same size asR
.
Examples
nctrnd(10,1,5,1) ans = 1.6576 1.0617 1.4491 0.2930 3.6297
References
[1] Evans, M., N. Hastings, and B. Peacock. Statistical Distributions. 2nd ed., Hoboken, NJ: John Wiley & Sons, Inc., 1993, pp. 147–148.
[2] Johnson, N., and S. Kotz. Distributions in Statistics: Continuous Univariate Distributions-2. Hoboken, NJ: John Wiley & Sons, Inc., 1970, pp. 201–219.