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.
the base to use for calculating the ratios, as described above
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].
Sampler in which sampling level ratios are distributed in an exponential way. More formally, each sampling level corresponds to a sample with
1.0 / pow(base, level) * 100%
of the original size.the type of the elements of the sequence
the base to use for calculating the ratios, as described above
(Since version 2017/07/13) This will be removed in a future version