mlpack  2.0.1
Namespaces | Functions | Variables
random.hpp File Reference

Miscellaneous math random-related routines. More...

Include dependency graph for random.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mlpack
 Linear algebra utility functions, generally performed on matrices or vectors.
 
 mlpack::math
 Miscellaneous math routines.
 

Functions

int mlpack::math::RandInt (const int hiExclusive)
 Generates a uniform random integer. More...
 
int mlpack::math::RandInt (const int lo, const int hiExclusive)
 Generates a uniform random integer. More...
 
double mlpack::math::RandNormal ()
 Generates a normally distributed random number with mean 0 and variance 1. More...
 
double mlpack::math::RandNormal (const double mean, const double variance)
 Generates a normally distributed random number with specified mean and variance. More...
 
double mlpack::math::Random ()
 Generates a uniform random number between 0 and 1. More...
 
double mlpack::math::Random (const double lo, const double hi)
 Generates a uniform random number in the specified range. More...
 
void mlpack::math::RandomSeed (const size_t seed)
 Set the random seed used by the random functions (Random() and RandInt()). More...
 

Variables

std::mt19937 mlpack::math::randGen
 
std::normal_distribution mlpack::math::randNormalDist
 
std::uniform_real_distribution mlpack::math::randUniformDist
 

Detailed Description

Miscellaneous math random-related routines.

This file is part of mlpack 2.0.1.

mlpack is free software; you may redstribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.

Definition in file random.hpp.