Top |
gdouble | (*NcmPriorGaussMean) () |
NcmPriorGauss * | ncm_prior_gauss_ref () |
void | ncm_prior_gauss_free () |
void | ncm_prior_gauss_clear () |
void | ncm_prior_gauss_set_mean () |
void | ncm_prior_gauss_set_sigma () |
void | ncm_prior_gauss_set_var () |
gdouble | ncm_prior_gauss_get_mean () |
gdouble | ncm_prior_gauss_get_sigma () |
gdouble | ncm_prior_gauss_get_var () |
GObject ╰── NcmMSetFunc ╰── NcmPrior ╰── NcmPriorGauss ├── NcmPriorGaussFunc ╰── NcmPriorGaussParam
This object is a subclass of NcmPrior, serving as a base class for Gaussian priors used by NcmLikelihood. These objects describe Gaussian prior distributions applicable to parameters or any derived quantity.
The Gaussian prior is defined as: $$ -2\ln P(x) = \frac{\left(x - \mu\right)^2}{\sigma}, $$ where $\mu$ is the mean and $\sigma$ is the standard deviation. This Gaussian prior places higher probability density around the mean and decreases exponentially as the parameter deviates from the mean.
The prior is not normalized. It is particularly useful for defining a Gaussian prior when the analysis benefits from a smooth and symmetric distribution around the mean. Additionally, it is compatible with least-squares based analysis.
NcmPriorGauss *
ncm_prior_gauss_ref (NcmPriorGauss *pg
);
Increases the reference count of pg
atomically.
void
ncm_prior_gauss_free (NcmPriorGauss *pg
);
Decreases the reference count of pg
atomically.
void
ncm_prior_gauss_clear (NcmPriorGauss **pg
);
Decreases the reference count of *pg
and sets *pg
to NULL.
void ncm_prior_gauss_set_mean (NcmPriorGauss *pg
,const gdouble mean
);
Sets the mean of pg
.
void ncm_prior_gauss_set_sigma (NcmPriorGauss *pg
,const gdouble sigma
);
Sets the standard deviation of pg
.
void ncm_prior_gauss_set_var (NcmPriorGauss *pg
,const gdouble var
);
Sets the variable of pg
.