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.

Ancestors

Constructors

ncm_bootstrap_full_new

Creates a new NcmBootstrap drawing bsize indexes from [0, fsize).

ncm_bootstrap_new

Creates a new NcmBootstrap with both sizes zero.

ncm_bootstrap_sized_new

Creates a new NcmBootstrap with NcmBootstrap:full-size and NcmBootstrap:bootstrap-size both equal to fsize.

Functions

ncm_bootstrap_clear

Decreases the reference count of bstrap by one and sets bstrap to NULL.

Instance methods

ncm_bootstrap_free

Decreases the reference count of bstrap by one.

ncm_bootstrap_get

Gets the index at position i of the current realization. i is not checked.

ncm_bootstrap_get_bsize
No description available.

ncm_bootstrap_get_fsize
No description available.

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_ref

Increases the reference count of bstrap by one.

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.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

NumCosmoMath.Bootstrap:bootstrap-size
No description available.

NumCosmoMath.Bootstrap:full-size
No description available.

NumCosmoMath.Bootstrap:init
No description available.

NumCosmoMath.Bootstrap:realization
No description available.

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.

Class structure

struct NumCosmoMathBootstrapClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.