Main MRPT website > C++ reference for MRPT 1.9.9
Classes | Namespaces | Functions
RandomGenerators.h File Reference
#include <stdexcept>
#include <random>
#include <limits>
#include <vector>
#include <algorithm>
#include <cstddef>
#include <type_traits>
#include <mrpt/random/random_shuffle.h>
Include dependency graph for RandomGenerators.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Eigen::SelfAdjointEigenSolver< _MatrixType >
 
class  mrpt::random::CRandomGenerator
 A thred-safe pseudo random number generator, based on an internal MT19937 randomness generator. More...
 

Namespaces

 Eigen
 
 mrpt
 This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
 
 mrpt::random
 A namespace of pseudo-random numbers generators of diferent distributions.
 

Functions

CRandomGeneratormrpt::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...
 



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST