Randomly selects an item by sampling into a set with an unknown number of elements, which may each be weighted to be more likely choices.
Declared in <llvm/FuzzMutate/Random.h>
template<
typename T,
typename GenT>
class ReservoirSampler;
| Name | Description |
|---|---|
ReservoirSampler [constructor] | Construct from GenT |
getSelection | |
isEmpty | |
operator* | |
sample | sample overloads |
totalWeight | |
operator bool | Conversion to bool |