Class
NumCosmoMathBootstrap
Description [src]
final class NumCosmoMath.Bootstrap : GObject.Object
{
/* No available fields */
}
Random samples of the indexes of a data set.
A realization is an array of NcmBootstrap:bootstrap-size indexes in [0,
NcmBootstrap:full-size), drawn with replacement by ncm_bootstrap_resample() or without
replacement by ncm_bootstrap_remix(). Changing either size discards the realization.
Constructors
ncm_bootstrap_sized_new
Creates a new NcmBootstrap with NcmBootstrap:full-size and
NcmBootstrap:bootstrap-size both equal to fsize.
Instance methods
ncm_bootstrap_get_sortncomp
Counts the distinct indexes of the current realization. The result holds the pairs
(index, number of occurrences), in increasing order of index; it is empty when the
bootstrap size is zero. The realization is not changed. Aborts if bstrap has no realization.
ncm_bootstrap_is_init
Checks whether bstrap holds a realization, drawn by ncm_bootstrap_resample() or
ncm_bootstrap_remix() or set through NcmBootstrap:realization.
ncm_bootstrap_remix
Draws a new realization of NcmBootstrap:bootstrap-size distinct indexes from [0,
NcmBootstrap:full-size) without replacement, stored in increasing order. Locks rng
while drawing. Aborts if the bootstrap size is larger than the full size.
ncm_bootstrap_resample
Draws a new realization of NcmBootstrap:bootstrap-size indexes from [0,
NcmBootstrap:full-size) with replacement. Locks rng while drawing. Aborts if the
full size is zero and the bootstrap size is not.
ncm_bootstrap_set_bsize
Sets NcmBootstrap:bootstrap-size to bsize. A new size discards the realization.
ncm_bootstrap_set_fsize
Sets NcmBootstrap:full-size to fsize. The bootstrap size is not changed. A new
size discards the realization.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.