|
PLearn 0.1
|

Go to the source code of this file.
Namespaces | |
| namespace | PLearn |
< for swap | |
Defines | |
| #define | NTAB 32 |
| #define | EPS 1.2e-7 |
| #define | RNMX (1.0-EPS) |
| #define | IM1 2147483563 |
| #define | IM2 2147483399 |
| #define | AM1 (1.0/IM1) |
| #define | IMM1 (IM1-1) |
| #define | IA1 40014 |
| #define | IA2 40692 |
| #define | IQ1 53668 |
| #define | IQ2 52774 |
| #define | IR1 12211 |
| #define | IR2 3791 |
| #define | NDIV1 (1+IMM1/NTAB) |
| #define | MAXGAM 171.624376956302725 |
Functions | |
| real | PLearn::log_gamma (real xx) |
| real | PLearn::log_beta (real x, real y) |
| real | PLearn::incomplete_beta_continued_fraction (real z, real x, real y) |
| real | PLearn::incomplete_beta (real z, real x, real y) |
| real | PLearn::student_t_cdf (real t, int nb_degrees_of_freedom) |
| void | PLearn::manual_seed (int32_t x) |
| void | PLearn::seed () |
| int32_t | PLearn::get_seed () |
| real | PLearn::uniform_sample () |
| real | PLearn::bounded_uniform (real a, real b) |
| real | PLearn::expdev () |
| real | PLearn::gaussian_01 () |
| real | PLearn::gaussian_mu_sigma (real mu, real sigma) |
| real | PLearn::gaussian_mixture_mu_sigma (Vec &w, const Vec &mu, const Vec &sigma) |
| real | PLearn::gamdev (int ia) |
| real | PLearn::poidev (real xm) |
| real | PLearn::bnldev (real pp, int n) |
| int | PLearn::multinomial_sample (const Vec &distribution) |
| int | PLearn::uniform_multinomial_sample (int N) |
| return an integer between 0 and N-1 with equal probabilities | |
| void | PLearn::fill_random_uniform (const Vec &dest, real minval=0, real maxval=1) |
| sample each element from uniform distribution U[minval,maxval] | |
| void | PLearn::fill_random_discrete (const Vec &dest, const Vec &set) |
| sample each element from the given set | |
| void | PLearn::fill_random_normal (const Vec &dest, real mean=0, real stdev=1) |
| sample each element from Normal(mean,sdev^2) distribution | |
| void | PLearn::fill_random_normal (const Vec &dest, const Vec &mean, const Vec &stdev) |
| sample each element from multivariate Normal(mean,diag(sdev^2)) distribution | |
| void | PLearn::fill_random_uniform (const Mat &dest, real minval, real maxval) |
| void | PLearn::fill_random_normal (const Mat &dest, real mean, real sdev) |
| double | PLearn::incbcf (double a, double b, double x) |
| void | PLearn::random_subset_indices (const TVec< int > &dest, int n) |
| Fill dest with dest.length() unique indices of entries in (0,1,...n-1), chosen uniformly i.e. | |
Variables | |
| static int32_t | PLearn::the_seed = 0 |
| static int | PLearn::iset = 0 |
| static real | PLearn::gset |
| double | PLearn::MAXLOG = 7.09782712893383996732E2 |
| double | PLearn::MINLOG = -7.451332191019412076235E2 |
| double | PLearn::MACHEP = 1.11022302462515654042E-16 |
| double | PLearn::big = 4.503599627370496e15 |
| double | PLearn::biginv = 2.22044604925031308085e-16 |
| #define AM1 (1.0/IM1) |
Definition at line 210 of file random.cc.
Referenced by PLearn::uniform_sample().
| #define IA1 40014 |
Definition at line 212 of file random.cc.
Referenced by PLearn::uniform_sample().
| #define IA2 40692 |
Definition at line 213 of file random.cc.
Referenced by PLearn::uniform_sample().
| #define IM1 2147483563 |
Definition at line 208 of file random.cc.
Referenced by PLearn::uniform_sample().
| #define IM2 2147483399 |
Definition at line 209 of file random.cc.
Referenced by PLearn::uniform_sample().
| #define IMM1 (IM1-1) |
Definition at line 211 of file random.cc.
Referenced by PLearn::uniform_sample().
| #define IQ1 53668 |
Definition at line 214 of file random.cc.
Referenced by PLearn::uniform_sample().
| #define IQ2 52774 |
Definition at line 215 of file random.cc.
Referenced by PLearn::uniform_sample().
| #define IR1 12211 |
Definition at line 216 of file random.cc.
Referenced by PLearn::uniform_sample().
| #define IR2 3791 |
Definition at line 217 of file random.cc.
Referenced by PLearn::uniform_sample().
| #define NDIV1 (1+IMM1/NTAB) |
Definition at line 218 of file random.cc.
Referenced by PLearn::uniform_sample().
| #define NTAB 32 |
Definition at line 205 of file random.cc.
Referenced by PLearn::uniform_sample().
| #define RNMX (1.0-EPS) |
Definition at line 207 of file random.cc.
Referenced by PLearn::bounded_uniform(), and PLearn::uniform_sample().
1.7.4