4#include <boost/math/distributions/normal.hpp>
15 boost::math::normal_distribution<double> dist(mean, sigma);
16 double pdf = boost::math::pdf(dist, x);
29 boost::math::normal_distribution<double> dist(mean, sigma);
30 double cdf = boost::math::cdf(dist, x);
double probabilityDensityFunction(float mean, float sigma, float x)
Compute the probability density function provided mean and standard deviation.
Definition stats.h:14
double cumulativeDensityFunction(float mean, float sigma, float x)
Compute the cumulative density function provided mean and standard deviation.
Definition stats.h:28