Distributional Support Maximum
Name
UxHwDoubleSupportMax, UxHwFloatSupportMax — Return the maximum of the support of a distribution.
Synopsis
#include <uxhw.h>
double UxHwDoubleSupportMax(double value);
float UxHwFloatSupportMax(float value);
Description
The UxHwDoubleSupportMax() function returns the maximum of the support of the distribution associated with value on architectures that associate distributional information with floating-point values.
Parameters
value— The distributional value on which the maximum of the support is calculated.
Return Values
The UxHwDoubleSupportMax() function returns the maximum of the support of the distribution value. If value has no distribution associated with it, the function returns value.
✏️ Examples
#include <stdio.h>
#include <uxhw.h>
int
main(void)
{
double a = UxHwDoubleUniformDist(10.0, 20.0);
double supportMax = UxHwDoubleSupportMax(a);
printf("Maximum value in support of `a` is %lf\n", supportMax);
return 0;
}