Evaluate PDF
Name
UxHwDoubleEvaluatePDF, UxHwFloatEvaluatePDF — Return the value of the PDF of a distribution at a given domain value.
Synopsis
#include <uxhw.h>
double UxHwDoubleEvaluatePDF(double value, double domainValue);
float UxHwFloatEvaluatePDF(float value, float domainValue);
Description
The UxHwDoubleEvaluatePDF() function returns the value of the PDF of the distribution associated with value at the domain value domainValue,
on architectures that associate distributional information with floating-point values.
Parameters
value— The distributional value to evaluate the PDF of.domainValue— The domain value at which to evaluate the PDF.
Return Values
The UxHwDoubleEvaluatePDF() function returns the floating-point value of the PDF of the the distribution associated with value at the domain value domainValue.
If value has no distribution associated with it, the function returns positive infinity if value = domainValue and zero otherwise.
✏️ Examples
#include <stdio.h>
#include <uxhw.h>
int
main(void)
{
double domainValue = 1.0;
double value = UxHwDoubleUniformDist(0.0, 2.0);
double pdfValue = UxHwDoubleEvaluatePDF(value, domainValue);
printf("The value of the PDF of `value` at %lf is %lf.\n", domainValue, pdfValue);
return 0;
}