Creates a sampling function capable of extracting a sample from any sequence.
Creates a sampling function capable of extracting a sample from any sequence.
the level of sampling to use
a function capable of extracting a sample from any sequence.
Returns the ratio of elements that correspond to the given sampling level.
Returns the ratio of elements that correspond to the given sampling level.
the level of sampling to use
the ratio of elements that correspond to the given sampling level, in the range [0.0, 1.0].
Mixin that modifies an existing sampler by setting a minimum ratio for any sampling level. Mixing this trait in, levels which previously corresponded to a sampling ratio below the minimum defined use that minimum.
the type of the elements of the sequence
(Since version 2017/07/13) This will be removed in a future version