Generalized Extreme Value Distribution
Name
UxHwDoubleGEVDist, UxHwFloatGEVDist — Create a Generalized extreme value (GEV) distribution with unit scale and zero location.
Synopsis
#include <uxhw.h>
double UxHwDoubleGEVDist(double xi);
float UxHwFloatGEVDist(float xi);
Description
The UxHwDoubleGEVDist() function, on architectures that associate distributional information with floating-point values, creates an GEV distribution with parameter xi and associates it with its return value. The particle return value is the mean value of an GEV distribution with parameter xi. The probability density function of the GEV distribution is
The support is
- if ,
- if ,
- if .
Parameters
xi— The shape parameter () of the GEV distribution.
Return values
The UxHwDoubleGEVDist() function returns the mean value of a GEV distribution with parameter xi and associates it with a GEV distribution with parameter xi.
Illegal parameter values
If xi >= 1, the function returns NaN.
If xi is NaN, the function returns -NaN. See Handling of NaN.
Examples
#include <stdio.h>
#include <uxhw.h>
int
main(void)
{
double value = UxHwDoubleGEVDist(0.5);
printf("value = %lf\n", value);
return 0;
}