.. index:: pair: class; math::DistributionFunctions .. _doxid-classmath_1_1_distribution_functions: class math::DistributionFunctions ================================= .. toctree:: :hidden: Overview ~~~~~~~~ Auxiliary functions for CDF calculation. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class DistributionFunctions { public: // construction :target:`DistributionFunctions`(); :target:`~DistributionFunctions`(); // methods double :ref:`normalCDF`(const double x, double const mu, const double sigma); double :ref:`normalCDFInverse`(const double p, double const mu, const double sigma); double :ref:`erfinv`(double x); }; .. _details-classmath_1_1_distribution_functions: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Auxiliary functions for CDF calculation. Methods ------- .. index:: pair: function; normalCDF .. _doxid-classmath_1_1_distribution_functions_1a221339c04e02f1b8bcd7cb3ae499ac47: .. ref-code-block:: cpp :class: doxyrest-title-code-block double normalCDF(const double x, double const mu, const double sigma) Normal cumulative distribution function. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - x - Value for evaluation * - mu - Mean * - sigma - Standard deviation .. rubric:: Returns: Cumulative distribution function of the normal distribution .. index:: pair: function; normalCDFInverse .. _doxid-classmath_1_1_distribution_functions_1ac7d1041cbfc72a471ed934745cfc0a08: .. ref-code-block:: cpp :class: doxyrest-title-code-block double normalCDFInverse(const double p, double const mu, const double sigma) Inverse complementary error function. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - p - Probability value for evaluation * - mu - Mean * - sigma - Standard deviation .. rubric:: Returns: Inverse of the normal vumulative distribution function .. index:: pair: function; erfinv .. _doxid-classmath_1_1_distribution_functions_1a9aa8e1dbd9552dc4832186932df96235: .. ref-code-block:: cpp :class: doxyrest-title-code-block double erfinv(double x) Inverse error function NOTE: Abramowitz & Stegun rational approximation, taken from `http://libit.sourceforge.net/math_8c-source.html `__ Sufficient accuracy for the current GPR use case (~7 digits). .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - x - Value for evaluation