MRPT logo

RandomGenerators.h File Reference

#include <mrpt/utils/utils_defs.h>
#include <mrpt/math/CMatrixTemplateNumeric.h>

Go to the source code of this file.


Namespaces

namespace  mrpt
 The main namespace for all the Mobile Robot Programming Toolkit (MRPT) C++ libraries.
namespace  mrpt::math
 This base provides a set of functions for maths stuff.
namespace  mrpt::random
 A namespace of pseudo-random numbers genrators of diferent distributions.

Functions

double MRPTDLLIMPEXP mrpt::random::normalizedGaussian (double *likelihood=NULL)
 Generate a normalized normally distributed pseudo-random number.
double MRPTDLLIMPEXP mrpt::random::RandomNormal (double mean=0, double std=1)
 Generate a normally distributed pseudo-random number.
uint32_t MRPTDLLIMPEXP mrpt::random::RandomUniInt ()
 Generate a uniformly distributed pseudo-random number using the MT19937 algorithm, in the whole range of 32-bit integers.
double mrpt::random::RandomUni (const double &min, const double &max)
 Generate a uniformly distributed pseudo-random number using the MT19937 algorithm, scaled to the selected range.
template<class T >
void mrpt::random::matrixRandomUni (CMatrixTemplateNumeric< T > &matrix, const T &unif_min=0, const T &unif_max=1)
 Fills the given matrix with independent, uniformly distributed samples.
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.
template<class T >
void mrpt::random::matrixRandomNormal (CMatrixTemplateNumeric< T > &matrix, const T &mean=0, const T &std=1)
 Fills the given matrix with independent, normally distributed samples.
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.
void MRPTDLLIMPEXP mrpt::random::Randomize (const uint32_t &seed)
 Randomize the generators.
void MRPTDLLIMPEXP 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.
void MRPTDLLIMPEXP mrpt::random::randomNormalMultiDimensional (const CMatrixTemplateNumeric< double > &cov, std::vector< double > &out_result)
 Generate multidimensional random samples according to a given covariance matrix.
void MRPTDLLIMPEXP mrpt::random::randomNormalMultiDimensional (const CMatrixTemplateNumeric< float > &cov, std::vector< float > &out_result)
 Generate multidimensional random samples according to a given covariance matrix.
void MRPTDLLIMPEXP mrpt::random::randomNormalMultiDimensionalMany (const CMatrixD &cov, size_t desiredSamples, std::vector< vector_double > &ret, vector_double *samplesLikelihoods=NULL)
 Generate a given number of multidimensional random samples according to a given covariance matrix.
void MRPTDLLIMPEXP mrpt::random::randomNormalMultiDimensionalMany (const CMatrix &cov, size_t desiredSamples, std::vector< vector_float > &ret, vector_double *samplesLikelihoods=NULL)
 Generate a given number of multidimensional random samples according to a given covariance matrix.




Page generated by Doxygen 1.5.8 for MRPT 0.6.5 SVN:exported at Mon Jan 12 13:00:16 UTC 2009