跳到主要内容

F_DIST

Returns the (left-tailed) F probability distribution (degree of diversity) for two data sets.

Syntax

expression.F_DIST(arg1, arg2, arg3, arg4);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe value at which to evaluate the function, a nonnegative number.
arg2RequiredApiRange | ApiName | numberThe numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10.
arg3RequiredApiRange | ApiName | numberThe denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10.
arg4RequiredApiRange | ApiName | booleanA logical value that determines the function form. If this parameter is true, the function will return the cumulative distribution function, if it is false, it will return the probability density function.

Returns

number

Example

This example shows how to return the (left-tailed) F probability distribution (degree of diversity) for two data sets.

// How to get the F probability distribution (degree of diversity).

// Use function to calculate a left-tailed F probability distribution.

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
let ans = func.F_DIST(10, 6, 4, false);
worksheet.GetRange("B2").SetValue(ans);