rapid
A ROS robotics library.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
stochastic_universal_sampling.h File Reference
#include <vector>
#include "rapid_utils/random.h"

Go to the source code of this file.

Namespaces

 rapid
 
 rapid::utils
 

Functions

void rapid::utils::StochasticUniversalSampling (const std::vector< double > &cdf, int num_samples, std::vector< int > *indices)
 Sample randomly from a CDF with a uniform sampling method. More...
 
void rapid::utils::StochasticUniversalSampling (const std::vector< double > &cdf, int num_samples, const RandomNumberInterface &rng, std::vector< int > *indices)
 Sample randomly from a CDF with a uniform sampling method. More...