Top |
NcmMSetCatalog * | catalog | Read / Write / Construct Only |
gboolean | choose-cut | Read / Write / Construct |
double | choose-percentile | Read / Write / Construct |
double | m2lnL-reltol | Read / Write / Construct |
NcmMSetTransKernCatSampling | sampling-type | Read / Write / Construct |
NcmStatsDist * | stats-dist | Read / Write / Construct Only |
GEnum ╰── NcmMSetTransKernCatSampling GObject ╰── NcmMSetTransKern ╰── NcmMSetTransKernCat
This object subclasses NcmMSetTransKern and implements a catalog sampler.
Implementation of a catalog sampler class, capable of drawing samples from a catalog of points. Users can select the desired sampling method as described in NcmMSetTransKernCatSampling.
**Key Functionality:**
Draws samples from a catalog of points.
Allows users to choose the sampling method from NcmMSetTransKernCatSampling.
This class is designed for scenarios where sampling from a pre-existing catalog is useful, providing flexibility through the selection of various sampling methods described in NcmMSetTransKernCatSampling.
NcmMSetTransKernCat * ncm_mset_trans_kern_cat_new (NcmMSetCatalog *mcat
,NcmStatsDist *sd
);
New NcmMSetTransKernCat from mcat
catalog with the interpolation
object sd
.
void ncm_mset_trans_kern_cat_set_sampling (NcmMSetTransKernCat *tcat
,NcmMSetTransKernCatSampling sampling
);
Sets the sampling type to sampling
.
NcmMSetTransKernCatSampling
ncm_mset_trans_kern_cat_get_sampling (NcmMSetTransKernCat *tcat
);
Gets the sampling type.
#define NCM_TYPE_MSET_TRANS_KERN_CAT (ncm_mset_trans_kern_cat_get_type ())
Sampling methods.
“catalog”
property“catalog” NcmMSetCatalog *
catalog.
Owner: NcmMSetTransKernCat
Flags: Read / Write / Construct Only
“choose-cut”
property “choose-cut” gboolean
Whether to cut the catalog at the choose-percentile before choosing.
Owner: NcmMSetTransKernCat
Flags: Read / Write / Construct
Default value: FALSE
“choose-percentile”
property “choose-percentile” double
Max percentile to choose from.
Owner: NcmMSetTransKernCat
Flags: Read / Write / Construct
Allowed values: [0.01,1]
Default value: 0.9
“m2lnL-reltol”
property “m2lnL-reltol” double
Relative tolerance for m2lnL.
Owner: NcmMSetTransKernCat
Flags: Read / Write / Construct
Allowed values: [2.22045e-16,0.001]
Default value: 1e-07
“sampling-type”
property“sampling-type” NcmMSetTransKernCatSampling
Sampling method to use.
Owner: NcmMSetTransKernCat
Flags: Read / Write / Construct
Default value: NCM_MSET_TRANS_KERN_CAT_SAMPLING_RBF_INTERP
“stats-dist”
property“stats-dist” NcmStatsDist *
NcmStatsDist object.
Owner: NcmMSetTransKernCat
Flags: Read / Write / Construct Only