Home
last modified time | relevance | path

Searched refs:ReservoirSampler (Results 1 – 1 of 1) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/FuzzMutate/
DRandom.h34 template <typename T, typename GenT> class ReservoirSampler {
40 ReservoirSampler(GenT &RandGen) : RandGen(RandGen) {} in ReservoirSampler() function
54 template <typename RangeT> ReservoirSampler &sample(RangeT &&Items) { in sample()
61 ReservoirSampler &sample(const T &Item, uint64_t Weight) { in sample()
76 ReservoirSampler<ElT, GenT> makeSampler(GenT &RandGen, RangeT &&Items) { in makeSampler()
77 ReservoirSampler<ElT, GenT> RS(RandGen); in makeSampler()
83 ReservoirSampler<T, GenT> makeSampler(GenT &RandGen, const T &Item, in makeSampler()
85 ReservoirSampler<T, GenT> RS(RandGen); in makeSampler()
91 ReservoirSampler<T, GenT> makeSampler(GenT &RandGen) { in makeSampler()
92 return ReservoirSampler<T, GenT>(RandGen); in makeSampler()