Weibull Distribution
Name
UxHwDoubleWeibullDist
, UxHwFloatWeibullDist
— Create a Weibull distribution.
Synopsis
#include <uxhw.h>
double UxHwDoubleWeibullDist(double k, double lambda);
float UxHwFloatWeibullDist(float k, float lambda);
Description
The UxHwDoubleWeibullDist()
function, on architectures that associate distributional information with floating-point values, creates a Weibull distribution with parameters k
and lambda
and associates it with its return value. The particle return value is the mean value of a Weibull distribution with parameters k
and lambda
. The probability density function of the Weibull distribution is
Parameters
k
— The shape parameter (k) of the Weibull distribution.lambda
— The scale parameter () of the Weibull distribution.
Return Values
The UxHwDoubleWeibullDist()
function returns the mean of samples of a Weibull distribution with parameters k
and lambda
.
If k <= 0
or l <= 0
, the function returns NaN
.
✏️ Examples
#include <stdio.h>
#include <uxhw.h>
int
main(void)
{
double value = UxHwDoubleWeibullDist(1.0, 1.5);
printf("value = %lf\n", value);
return 0;
}