Generates a vector of non-central F-distributed random variables with the specified parameters. The general syntax for its use is
y = randnf(n,m,c)
where n
is the number of degrees of freedom in the numerator,
and m
is the number of degrees of freedom in the denominator.
The vector c
determines the non-centrality shift of the numerator.
A non-central F-distributed random variable is the ratio of a non-central chi-square random variable and a central chi-square random variable, i.e.,
Here we use the randf
to generate some non-central F-distributed
random variables:
--> randnf(5*ones(1,9),7,1.34) Error: Too many inputs to function randnf