Top |
NcmBootstrap * | ncm_bootstrap_new () |
NcmBootstrap * | ncm_bootstrap_sized_new () |
NcmBootstrap * | ncm_bootstrap_full_new () |
NcmBootstrap * | ncm_bootstrap_ref () |
void | ncm_bootstrap_free () |
void | ncm_bootstrap_clear () |
void | ncm_bootstrap_set_fsize () |
guint | ncm_bootstrap_get_fsize () |
void | ncm_bootstrap_set_bsize () |
guint | ncm_bootstrap_get_bsize () |
void | ncm_bootstrap_resample () |
void | ncm_bootstrap_remix () |
guint | ncm_bootstrap_get () |
GArray * | ncm_bootstrap_get_sortncomp () |
gboolean | ncm_bootstrap_is_init () |
guint | bootstrap-size | Read / Write / Construct |
guint | full-size | Read / Write / Construct |
gboolean | init | Read |
GVariant * | realization | Read / Write |
This object generate random samples of indexes. These samples are used to calculate statistics using different combinations of the same data set.
NcmBootstrap *
ncm_bootstrap_new (void
);
Creates a new zero sized NcmBootstrap object.
NcmBootstrap *
ncm_bootstrap_sized_new (guint fsize
);
Creates a new NcmBootstrap object for a sample of size fsize
. This object
will sample with replacement all indexes fsize
times.
NcmBootstrap * ncm_bootstrap_full_new (guint fsize
,guint bsize
);
Creates a new NcmBootstrap object for a sample of size fsize
. This object
will sample with replacement all indexes bsize
times.
NcmBootstrap *
ncm_bootstrap_ref (NcmBootstrap *bstrap
);
Incresases the reference count of bstrap
by one.
void
ncm_bootstrap_free (NcmBootstrap *bstrap
);
Decreases the reference count of bstrap
by one.
void
ncm_bootstrap_clear (NcmBootstrap **bstrap
);
Decreases the reference count of *bstrap
by one and sets *bstrap
tp NULL.
void ncm_bootstrap_set_fsize (NcmBootstrap *bstrap
,guint fsize
);
Sets the full sample size, it also sets the bsize to the same value fsize
.
guint
ncm_bootstrap_get_fsize (NcmBootstrap *bstrap
);
Gets the full sample size.
void ncm_bootstrap_set_bsize (NcmBootstrap *bstrap
,guint bsize
);
Sets the bootstrap size.
guint
ncm_bootstrap_get_bsize (NcmBootstrap *bstrap
);
Gets the bootstrap size.
void ncm_bootstrap_resample (NcmBootstrap *bstrap
,NcmRNG *rng
);
Sample with replacement “bootstrap-size” from the “full-size” indexes.
void ncm_bootstrap_remix (NcmBootstrap *bstrap
,NcmRNG *rng
);
Sample without replacement “bootstrap-size” from the “full-size” indexes. Note that in this case “bootstrap-size” must be equal or smaller than “full-size”.
guint ncm_bootstrap_get (NcmBootstrap *bstrap
,guint i
);
Gets the index associated with the i
-th resampled index.
GArray *
ncm_bootstrap_get_sortncomp (NcmBootstrap *bstrap
);
Fills an array with the sorted indexes followed by the number of times they appear.
gboolean
ncm_bootstrap_is_init (NcmBootstrap *bstrap
);
Checks if the bootstrap object was initialized (remix or resample).
“bootstrap-size”
property “bootstrap-size” guint
Bootstrap size.
Owner: NcmBootstrap
Flags: Read / Write / Construct
Default value: 0
“full-size”
property “full-size” guint
Data sample size.
Owner: NcmBootstrap
Flags: Read / Write / Construct
Default value: 0
“init”
property “init” gboolean
Bootstrap initialization status.
Owner: NcmBootstrap
Flags: Read
Default value: FALSE