#include <WeightedSampler.h>
Public Member Functions | |
std::vector< size_t > | sampleWithoutReplacement (size_t numSamples, const std::vector< double > &weights) |
WeightedSampler (Engine *engine) | |
Private Attributes | |
Engine * | engine_ |
Definition at line 37 of file WeightedSampler.h.
|
inlineexplicit |
Construct from random number generation engine We only store a pointer to it.
Definition at line 46 of file WeightedSampler.h.
|
inline |
Definition at line 48 of file WeightedSampler.h.
|
private |
Definition at line 39 of file WeightedSampler.h.