Top |
NcmLHRatio2d * | ncm_lh_ratio2d_new () |
void | ncm_lh_ratio2d_free () |
void | ncm_lh_ratio2d_clear () |
void | ncm_lh_ratio2d_set_pindex () |
NcmLHRatio2dRegion * | ncm_lh_ratio2d_conf_region () |
NcmLHRatio2dRegion * | ncm_lh_ratio2d_fisher_border () |
NcmLHRatio2dRegion * | ncm_lh_ratio2d_region_dup () |
void | ncm_lh_ratio2d_region_free () |
void | ncm_lh_ratio2d_region_clear () |
void | ncm_lh_ratio2d_region_print () |
double | border-prec | Read / Write / Construct |
NcmFit * | fit | Write / Construct Only |
NcmMSetPIndex * | pi1 | Read / Write / Construct |
NcmMSetPIndex * | pi2 | Read / Write / Construct |
#define | NCM_TYPE_LH_RATIO2D |
enum | NcmLHRatio2dRoot |
struct | NcmLHRatio2dRegion |
NcmLHRatio2d |
NcmLHRatio2d * ncm_lh_ratio2d_new (NcmFit *fit
,const NcmMSetPIndex *pi1
,const NcmMSetPIndex *pi2
,gdouble border_prec
);
Creates a new NcmLHRatio2d object. The parameters pi1
and pi2
must be
parameters of the model set of fit
.
fit |
a NcmFit |
|
pi1 |
a NcmMSetPIndex for the first parameter |
|
pi2 |
a NcmMSetPIndex for the second parameter |
|
border_prec |
precision on the border finder. |
void
ncm_lh_ratio2d_free (NcmLHRatio2d *lhr2d
);
Decreases the reference count of lhr2d
by one. If the reference count
reaches zero, all memory allocated by lhr2d
is released.
void
ncm_lh_ratio2d_clear (NcmLHRatio2d **lhr2d
);
If lhr2d
is not NULL
, decreases its reference count by one and sets
lhr2d
to NULL
.
void ncm_lh_ratio2d_set_pindex (NcmLHRatio2d *lhr2d
,NcmMSetPIndex *pi1
,NcmMSetPIndex *pi2
);
Sets the parameters to be used in the likelihood ratio analysis.
lhr2d |
||
pi1 |
a NcmMSetPIndex for the first parameter |
|
pi2 |
a NcmMSetPIndex for the second parameter |
NcmLHRatio2dRegion * ncm_lh_ratio2d_conf_region (NcmLHRatio2d *lhr2d
,gdouble clevel
,gdouble expected_np
,NcmFitRunMsgs mtype
);
Computes the confidence region with the given clevel
.
NcmLHRatio2dRegion * ncm_lh_ratio2d_fisher_border (NcmLHRatio2d *lhr2d
,gdouble clevel
,gdouble expected_np
,NcmFitRunMsgs mtype
);
Computes the Fisher border with the given clevel
.
lhr2d |
a NcmFit. |
|
clevel |
confidence level |
|
expected_np |
Expected number of points, if lesser than 1 it uses the default value of 600. |
|
mtype |
NcmLHRatio2dRegion *
ncm_lh_ratio2d_region_dup (NcmLHRatio2dRegion *rg
);
Duplicates a NcmLHRatio2dRegion.
void
ncm_lh_ratio2d_region_free (NcmLHRatio2dRegion *rg
);
Frees a NcmLHRatio2dRegion.
void
ncm_lh_ratio2d_region_clear (NcmLHRatio2dRegion **rg
);
If rg
is not NULL
, frees a NcmLHRatio2dRegion and sets rg
to NULL
.
void ncm_lh_ratio2d_region_print (NcmLHRatio2dRegion *rg
,FILE *out
);
Prints the region to the file handler out
.
struct NcmLHRatio2dRegion { guint np; NcmVector *p1; NcmVector *p2; gdouble clevel; };
Object describing a confidence region.
“border-prec”
property “border-prec” double
Border precision.
Owner: NcmLHRatio2d
Flags: Read / Write / Construct
Allowed values: [1e-16,1000]
Default value: 1e-05
“pi1”
property“pi1” NcmMSetPIndex *
First param index.
Owner: NcmLHRatio2d
Flags: Read / Write / Construct
“pi2”
property“pi2” NcmMSetPIndex *
Second param index.
Owner: NcmLHRatio2d
Flags: Read / Write / Construct