Skip to main content

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.

If value is NaN with no associated distribution, the function returns -NaN. See Handling of NaN.

✏️   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;
}