1 #ifndef _RAPID_UTILS_STOCHASTIC_UNIVERSAL_SAMPLING_H_
2 #define _RAPID_UTILS_STOCHASTIC_UNIVERSAL_SAMPLING_H_
17 int num_samples, std::vector<int>* indices);
29 const RandomNumberInterface& rng,
30 std::vector<int>* indices);
34 #endif // _RAPID_UTILS_STOCHASTIC_UNIVERSAL_SAMPLING_H_
void StochasticUniversalSampling(const std::vector< double > &cdf, int num_samples, std::vector< int > *indices)
Sample randomly from a CDF with a uniform sampling method.