Bayes-Laplace Rule
Name
UxHwDoubleBayesLaplace, UxHwFloatBayesLaplace — Perform Bayesian inference with distributional arithmetic.
Synopsis
#include <uxhw.h>
double UxHwDoubleBayesLaplace(
double (*statisticalModel)(void *, double),
void * modelParams,
double prior,
double observedData,
size_t numberOfObservations
);
float UxHwFloatBayesLaplace(
float (*statisticalModel)(void *, float),
void * modelParams,
float prior,
float observedData,
size_t numberOfObservations
);
Description
Performs Bayesian inference to calculate and return the posterior distribution of the parameter using Bayes' rule (also known as Bayes-Laplace rule):