Skip to main content

WEIBULL_DIST

Returns the Weibull distribution.

Syntax

expression.WEIBULL_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 alpha parameter of the distribution, a positive number.
arg3RequiredApiRange | ApiName | numberThe beta parameter of the distribution, a positive number.
arg4RequiredApiRange | ApiName | booleanA logical value (true or false) that determines the function form. If it is true, the function returns the cumulative distribution function. If it is false, the function returns the probability mass function.

Returns

number

Example

This example shows how to return the Weibull distribution.

// How to return the Weibull distribution.

// Use a function to calculate the Weibull distribution.


let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
let result = func.WEIBULL_DIST(12, 2, 5, true);
worksheet.GetRange("B2").SetValue(result);