|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
One-dimensional Gaussian marginal distribution. More...
#include <GaussianMarginal.h>


Public Member Functions | |
| GaussianMarginal (unsigned int seed=std::random_device{}()) | |
| Vector | sample (std::size_t n) override |
| GaussianMarginal (double mu, double sigma, unsigned int seed=std::random_device{}()) | |
| Constructs a Gaussian marginal. | |
| std::vector< double > | rvs (std::size_t n) override |
| Draws random samples from the marginal distribution. | |
| double | logpdf (double x) override |
Evaluates the logarithm of the probability density at x. | |
| PDFDiff | f_df_ddf (double x) override |
| double | cdf (double x) override |
Evaluates the cumulative distribution function at x. | |
| double | ppf (double p) override |
| Evaluates the quantile function (inverse CDF). | |
| double | mean () override |
| Returns the mean of the distribution. | |
| double | std () override |
| Returns the mean of the distribution. | |
Public Member Functions inherited from IMarginalDistribution | |
| virtual | ~IMarginalDistribution ()=default |
| virtual | ~IMarginalDistribution ()=default |
| Virtual destructor for safe polymorphic deletion. | |
One-dimensional Gaussian marginal distribution.
This class models the normal distribution:
![\[
f(x)=\frac{1}{\sqrt{2\pi}\sigma}\exp\left(-\frac{(x-\mu)^2}{2\sigma^2}\right).
\]](form_69.png)
It provides:
Sampling and distribution utilities are provided through GSL.
Definition at line 111 of file correlated_rng.cpp.
|
inlineexplicit |
Definition at line 113 of file correlated_rng.cpp.
|
explicit |
Constructs a Gaussian marginal.
| mu | Mean of the distribution. |
| sigma | Standard deviation of the distribution. |
| seed | Seed for the internal RNG. |
Definition at line 3 of file GaussianMarginal.cpp.
|
overridevirtual |
Evaluates the cumulative distribution function at x.
| x | Point at which the CDF is evaluated. |

Implements IMarginalDistribution.
Definition at line 45 of file GaussianMarginal.cpp.
|
overridevirtual |
Implements IMarginalDistribution.
Definition at line 29 of file GaussianMarginal.cpp.
|
overridevirtual |
Evaluates the logarithm of the probability density at x.
For continuous distributions, this is usually 
| x | Point at which the log-density is evaluated. |
Implements IMarginalDistribution.
Definition at line 16 of file GaussianMarginal.cpp.
|
overridevirtual |
Returns the mean of the distribution.
Implements IMarginalDistribution.
Definition at line 53 of file GaussianMarginal.cpp.
|
overridevirtual |
Evaluates the quantile function (inverse CDF).
| x | Probability in the unit interval. |
x. Implements IMarginalDistribution.
Definition at line 49 of file GaussianMarginal.cpp.
|
overridevirtual |
Draws random samples from the marginal distribution.
| n | Number of samples to generate. |
n containing iid draws. Implements IMarginalDistribution.
Definition at line 9 of file GaussianMarginal.cpp.
|
inlineoverridevirtual |
Implements IMarginalDistribution.
Definition at line 116 of file correlated_rng.cpp.
|
overridevirtual |
Returns the mean of the distribution.
Implements IMarginalDistribution.
Definition at line 57 of file GaussianMarginal.cpp.