next up previous contents
Next: RANDN Gaussian (Normal) Random Up: Random Number Generation Previous: RANDNCHI Generate Noncentral Chi-Square   Contents

Subsections

RANDNF Generate Noncentral F-Distribution Random Variable

Usage

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.

Function Internals

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.,

$\displaystyle F_{n,m,c} = \frac{\chi_{n,c}^2/n}{\chi_m^2/m}.
$

Example

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



Samit K. Basu 2005-03-16