MRPT  1.9.9
Classes | Namespaces | Functions
RandomGenerators.h File Reference
#include <mrpt/random/random_shuffle.h>
#include <algorithm>
#include <cstddef>
#include <limits>
#include <random>
#include <stdexcept>
#include <type_traits>
#include <vector>
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::Generator_MT19937
 Portable MT19937 random generator, C++11 UniformRandomBitGenerator compliant. More...
 
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.14 for MRPT 1.9.9 Git: c1796881b Sat Nov 16 19:04:34 2019 +0100 at sáb nov 16 19:15:10 CET 2019