![]() |
![]() |
![]() |
liboscats Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
gdouble (*OscatsAlgStratifyCriterion) (const OscatsAdministrand *item
,gpointer data
); struct OscatsAlgStratify; void oscats_alg_stratify_stratify (OscatsAlgStratify *stratify
,guint n_strata
,OscatsAlgStratifyCriterion f
,gpointer f_data
,guint n_blocks
,OscatsAlgStratifyCriterion block
,gpointer b_data
); GBitArray * oscats_alg_stratify_get_stratum (const OscatsAlgStratify *stratify
,guint stratum
); void oscats_alg_stratify_reset (OscatsAlgStratify *stratify
); GBitArray * oscats_alg_stratify_next (OscatsAlgStratify *stratify
);
gdouble (*OscatsAlgStratifyCriterion) (const OscatsAdministrand *item
,gpointer data
);
struct OscatsAlgStratify;
Support algorithm (for item selection): Stratify items based on some criterion.
void oscats_alg_stratify_stratify (OscatsAlgStratify *stratify
,guint n_strata
,OscatsAlgStratifyCriterion f
,gpointer f_data
,guint n_blocks
,OscatsAlgStratifyCriterion block
,gpointer b_data
);
Stratify the "itembank" of stratify
using the criterion
f
within blocks specified by block
. The bank can be restratified by
calling this function multiple times.
|
an OscatsAlgStratify object |
|
the number of strata |
|
the criterion function by which to stratify |
|
user data to supply to f . [allow-none]
|
|
the number of blocks |
|
the criterion function by which to block. [allow-none] |
|
user data to supply to block . [allow-none]
|
GBitArray * oscats_alg_stratify_get_stratum (const OscatsAlgStratify *stratify
,guint stratum
);
|
an OscatsAlgStratify object |
|
the stratum to fetch (0-based index) |
Returns : |
the stratum stratum of stratify . [transfer none]
|
void oscats_alg_stratify_reset (OscatsAlgStratify *stratify
);
Reset the internal stratum iterator.
|
an OscatsAlgStratify object |
GBitArray * oscats_alg_stratify_next (OscatsAlgStratify *stratify
);
Returns the next stratum using the internal stratum iterator and
increments the iterator. Returns NULL
if there are no more strata.
|
an OscatsAlgStratify object |
Returns : |
the next stratum. [transfer none] |
"itembank"
property"itembank" OscatsItemBank* : Read / Write / Construct Only
The item bank to stratify.