NcmPrior

NcmPrior — Base class for prior distributions.

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── NcmMSetFunc
        ╰── NcmPrior
            ├── NcHICosmoQRBFRprior
            ├── NcPriorQSplineCont
            ├── NcmPriorFlat
            ╰── NcmPriorGauss

Description

This object defines a base class for priors used by NcmLikelihood. These objects describe various prior distributions applicable to parameters or any derived quantity. Two types of priors are supported:

  1. Priors returning $-2\ln(L_\mathrm{prior})$

  2. Priors returning $f$ such that $-2\ln(P_\mathrm{prior}) = f^2$

The second type is essential when conducting least-squares based analysis but can also be used in any other type of analysis.

Functions

ncm_prior_ref ()

NcmPrior *
ncm_prior_ref (NcmPrior *prior);

Increases the reference count of prior atomically.

Parameters

prior

a NcmPrior

 

Returns

prior .

[transfer full]


ncm_prior_free ()

void
ncm_prior_free (NcmPrior *prior);

Decreases the reference count of prior atomically.

Parameters

prior

a NcmPrior

 

ncm_prior_clear ()

void
ncm_prior_clear (NcmPrior **prior);

Decreases the reference count of *prior and sets *prior to NULL.

Parameters

prior

a NcmPrior

 

ncm_prior_is_m2lnL ()

gboolean
ncm_prior_is_m2lnL (NcmPrior *prior);

Parameters

prior

a NcmPrior

 

Returns

TRUE if the prior calculates $-2\ln(L_\mathrm{prior})$ and FALSE if it returns $f$ such that $-2\ln(L_\mathrm{prior}) = f^2$.

Types and Values

NCM_TYPE_PRIOR

#define NCM_TYPE_PRIOR (ncm_prior_get_type ())

struct NcmPriorClass

struct NcmPriorClass {
};

NcmPrior

typedef struct _NcmPrior NcmPrior;