NcmLHRatio1d

NcmLHRatio1d — Likelihood ratio for one dimensional parameter analysis.

Functions

Properties

NcmMSetFunc * constraint Read / Write
NcmFit * fit Read / Write / Construct Only
NcmMSetPIndex * pi Read / Write / Construct

Types and Values

Object Hierarchy

    GEnum
    ╰── NcmLHRatio1dRoot
    GObject
    ╰── NcmLHRatio1d

Description

This object defines a likelihood ratio for one dimensional parameter analysis.

Functions

ncm_lh_ratio1d_new ()

NcmLHRatio1d *
ncm_lh_ratio1d_new (NcmFit *fit,
                    const NcmMSetPIndex *pi);

Creates a new NcmLHRatio1d object. The parameter pi must be a free parameter of the model mid .

Parameters

fit

a NcmFit

 

pi

a NcmMSetPIndex

 

Returns

a NcmLHRatio1d.

[transfer full]


ncm_lh_ratio1d_free ()

void
ncm_lh_ratio1d_free (NcmLHRatio1d *lhr1d);

Decrement the reference count of lhr1d , if it reaches zero, free it.

Parameters

lhr1d

a NcmLHRatio1d

 

ncm_lh_ratio1d_clear ()

void
ncm_lh_ratio1d_clear (NcmLHRatio1d **lhr1d);

If *lhr1d is not NULL, decrement the reference count of lhr1d . Sets *lhr1d to NULL.

Parameters

lhr1d

a NcmLHRatio1d

 

ncm_lh_ratio1d_set_pindex ()

void
ncm_lh_ratio1d_set_pindex (NcmLHRatio1d *lhr1d,
                           NcmMSetPIndex *pi);

Sets the parameter index of lhr1d to pi . The parameter pi must be a free parameter of the model mid .

Parameters

lhr1d

a NcmLHRatio1d

 

pi

a NcmMSetPIndex

 

ncm_lh_ratio1d_find_bounds ()

void
ncm_lh_ratio1d_find_bounds (NcmLHRatio1d *lhr1d,
                            gdouble clevel,
                            NcmFitRunMsgs mtype,
                            gdouble *lb,
                            gdouble *ub);

Finds the lower and upper bounds of the parameter pid of model mid constrained by the likelihood ratio clevel . The bounds are stored in *lb and *ub .

Parameters

lhr1d

a NcmLHRatio1d

 

clevel

the confidence level (0,1)

 

mtype

a NcmFitRunMsgs

 

lb

lower bound.

[out]

ub

upper bound.

[out]

Types and Values

NCM_TYPE_LH_RATIO1D

#define NCM_TYPE_LH_RATIO1D (ncm_lh_ratio1d_get_type ())

enum NcmLHRatio1dRoot

Root finding methods used by NcmLHRatio1d.

Members

NCM_LH_RATIO1D_ROOT_BRACKET

Root finding by bracketing

 

NCM_LH_RATIO1D_ROOT_NUMDIFF

Root finding by numerical differentiation

 

NcmLHRatio1d

typedef struct _NcmLHRatio1d NcmLHRatio1d;

Property Details

The “constraint” property

  “constraint”               NcmMSetFunc *

Constraint.

Owner: NcmLHRatio1d

Flags: Read / Write


The “fit” property

  “fit”                      NcmFit *

NcmFit object.

Owner: NcmLHRatio1d

Flags: Read / Write / Construct Only


The “pi” property

  “pi”                       NcmMSetPIndex *

Param index.

Owner: NcmLHRatio1d

Flags: Read / Write / Construct