.TH "src/mlpack/core/math/random.hpp" 3 "Tue Sep 9 2014" "Version 1.0.10" "MLPACK" \" -*- nroff -*- .ad l .nh .SH NAME src/mlpack/core/math/random.hpp \- .PP Miscellaneous math random-related routines\&. .SH SYNOPSIS .br .PP .SS "Namespaces" .in +1c .ti -1c .RI " \fBmlpack\fP" .br .RI "\fILinear algebra utility functions, generally performed on matrices or vectors\&. \fP" .ti -1c .RI " \fBmlpack::math\fP" .br .RI "\fIMiscellaneous math routines\&. \fP" .in -1c .SS "Functions" .in +1c .ti -1c .RI "int \fBmlpack::math::RandInt\fP (const int hiExclusive)" .br .RI "\fIGenerates a uniform random integer\&. \fP" .ti -1c .RI "int \fBmlpack::math::RandInt\fP (const int lo, const int hiExclusive)" .br .RI "\fIGenerates a uniform random integer\&. \fP" .ti -1c .RI "double \fBmlpack::math::RandNormal\fP ()" .br .RI "\fIGenerates a normally distributed random number with mean 0 and variance 1\&. \fP" .ti -1c .RI "double \fBmlpack::math::RandNormal\fP (const double mean, const double variance)" .br .RI "\fIGenerates a normally distributed random number with specified mean and variance\&. \fP" .ti -1c .RI "double \fBmlpack::math::Random\fP ()" .br .RI "\fIGenerates a uniform random number between 0 and 1\&. \fP" .ti -1c .RI "double \fBmlpack::math::Random\fP (const double lo, const double hi)" .br .RI "\fIGenerates a uniform random number in the specified range\&. \fP" .ti -1c .RI "void \fBmlpack::math::RandomSeed\fP (const size_t seed)" .br .RI "\fISet the random seed used by the random functions (\fBRandom()\fP and \fBRandInt()\fP)\&. \fP" .in -1c .SS "Variables" .in +1c .ti -1c .RI "boost::mt19937 \fBmlpack::math::randGen\fP" .br .ti -1c .RI "boost::normal_distribution \fBmlpack::math::randNormalDist\fP" .br .ti -1c .RI "boost::uniform_01 .br < boost::mt19937, double > \fBmlpack::math::randUniformDist\fP" .br .in -1c .SH "Detailed Description" .PP Miscellaneous math random-related routines\&. This file is part of MLPACK 1\&.0\&.10\&. .PP MLPACK is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version\&. .PP MLPACK is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU Lesser General Public License for more details (LICENSE\&.txt)\&. .PP You should have received a copy of the GNU General Public License along with MLPACK\&. If not, see http://www.gnu.org/licenses/\&. .PP Definition in file \fBrandom\&.hpp\fP\&. .SH "Author" .PP Generated automatically by Doxygen for MLPACK from the source code\&.