# MathProbabilityDensityNoncentralF

Calculates the value of the probability density function of noncentral Fisher's F-distribution with the nu1, nu2 and sigma parameters for a random variable x. In case of error it returns NaN.

 double  MathProbabilityDensityNoncentralF(    const double  x,             // value of random variable    const double  nu1,           // the first parameter of distribution (number of degrees of freedom)    const double  nu2,           // the second parameter of distribution (number of degrees of freedom)    const double  sigma,         // noncentrality parameter    const bool    log_mode,      // calculate the logarithm of the value, if log_mode=true, then the natural logarithm of the probability density is calculated    int&          error_code     // variable to store the error code    );

Calculates the value of the probability density function of noncentral Fisher's F-distribution with the nu1, nu2 and sigma parameters for a random variable x. In case of error it returns NaN.

 double  MathProbabilityDensityNoncentralF(    const double  x,             // value of random variable    const double  nu1,           // the first parameter of distribution (number of degrees of freedom)    const double  nu2,           // the second parameter of distribution (number of degrees of freedom)    const double  sigma,         // noncentrality parameter    int&          error_code     // variable to store the error code    );

Calculates the value of the probability density function of noncentral Fisher's F-distribution with the nu1, nu2 and sigma parameters for an array of random variables x[]. In case of error it returns false. Analog of the df() in R.

 bool  MathProbabilityDensityNoncentralF(    const double& x[],            // array with the values of random variable    const double  nu1,            // the first parameter of distribution (number of degrees of freedom)    const double  nu2,            // the second parameter of distribution (number of degrees of freedom)    const double  sigma,          // noncentrality parameter    const bool    log_mode,       // flag to calculate the logarithm of the value, if log_mode=true, then the natural logarithm of the probability density is calculated    double&       result[]        // array for values of the probability density function    );

Calculates the value of the probability density function of noncentral Fisher's F-distribution with the nu1, nu2 and sigma parameters for an array of random variables x[]. In case of error it returns false.

 bool  MathProbabilityDensityNoncentralF(    const double& x[],            // array with the values of random variable    const double  nu1,            // the first parameter of distribution (number of degrees of freedom)    const double  nu2,            // the second parameter of distribution (number of degrees of freedom)    const double  sigma,          // noncentrality parameter    double&       result[]        // array for values of the probability density function    );

Parameters

x

[in]  Value of random variable.

x[]

[in]  Array with the values of random variable.

nu1

[in]  The first parameter of distribution (number of degrees of freedom).

nu2

[in]  The second parameter of distribution (number of degrees of freedom).

sigma

[in]  Noncentrality parameter.

log_mode

[in]  Flag to calculate the logarithm of the value. If log_mode=true, then the natural logarithm of the probability density is returned.

error_code

[out]  Variable to store the error code.

result[]

[out]  Array for values of the probability density function.

Updated: 2016.12.21