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].
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.
Class that encapsulates a sampling strategy over a sequence of elements.
the type of the elements of the sequence
(Since version 2017/07/13) This will be removed in a future version
move the type parameter T to the apply method.