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