|
CRandomGenerator & | mrpt::random::getRandomGenerator () |
| A static instance of a CRandomGenerator class, for use in single-thread applications. More...
|
|
ptrdiff_t | mrpt::random::random_generator_for_STL (ptrdiff_t i) |
| A random number generator for usage in STL algorithms expecting a function like this (eg, random_shuffle): More...
|
|
template<class MAT > |
void | mrpt::random::matrixRandomUni (MAT &matrix, const double unif_min=0, const double unif_max=1) |
| Fills the given matrix with independent, uniformly distributed samples. More...
|
|
template<class T > |
void | mrpt::random::vectorRandomUni (std::vector< T > &v_out, const T &unif_min=0, const T &unif_max=1) |
| Fills the given matrix with independent, uniformly distributed samples. More...
|
|
template<class MAT > |
void | mrpt::random::matrixRandomNormal (MAT &matrix, const double mean=0, const double std=1) |
| Fills the given matrix with independent, normally distributed samples. More...
|
|
template<class T > |
void | mrpt::random::vectorRandomNormal (std::vector< T > &v_out, const T &mean=0, const T &std=1) |
| Generates a random vector with independent, normally distributed samples. More...
|
|
void | mrpt::random::Randomize (const uint32_t seed) |
| Randomize the generators. More...
|
|
void | mrpt::random::Randomize () |
|
template<class T > |
void | mrpt::random::randomPermutation (const std::vector< T > &in_vector, std::vector< T > &out_result) |
| Returns a random permutation of a vector: all the elements of the input vector are in the output but at random positions. More...
|
|
template<typename T , typename MATRIX > |
void | mrpt::random::randomNormalMultiDimensionalMany (const MATRIX &cov, size_t desiredSamples, std::vector< std::vector< T >> &ret, std::vector< T > *samplesLikelihoods=nullptr) |
| Generate a given number of multidimensional random samples according to a given covariance matrix. More...
|
|
template<typename T , typename MATRIXLIKE > |
void | mrpt::random::randomNormalMultiDimensionalMany (const MATRIXLIKE &cov, size_t desiredSamples, std::vector< std::vector< T >> &ret) |
| Generate multidimensional random samples according to a given covariance matrix. More...
|
|
template<typename T , typename MATRIX > |
void | mrpt::random::randomNormalMultiDimensional (const MATRIX &cov, std::vector< T > &out_result) |
| Generate multidimensional random samples according to a given covariance matrix. More...
|
|