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 parameter () of the GEV distribution.
Return Values
The UxHwDoubleGEVDist()
function returns the mean of samples of a GEV distribution with parameter xi
.
If xi >= 1
, the function returns NaN
.
✏️ Examples
#include <stdio.h>
#include <uxhw.h>
int
main(void)
{
double value = UxHwDoubleGEVDist(0.5);
printf("value = %lf\n", value);
return 0;
}