prob
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
prob [2012/11/16 12:08] – ignacy | prob [2012/12/06 18:12] – ignacy | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====Module Prob===== | + | ======Module Prob====== |
- | + | Ignacy Misztal and Deukhwan Lee, University of Georgia | |
- | + | 04/ | |
- | + | ||
- | + | ||
- | Ignacy Misztal and Deukhwan Lee, University of Georgia | + | |
- | 04/ | + | |
- | + | ||
- | === Introduction === | + | |
+ | ==== Introduction ==== | ||
Module Prob is a collection of random number generators / probabilities / | Module Prob is a collection of random number generators / probabilities / | ||
Line 18: | Line 13: | ||
Module prob uses high-quality generators from public domain package RANLIB for | Module prob uses high-quality generators from public domain package RANLIB for | ||
- | random number generators. Some low level code is from Luis Varona. | + | random number generators. Some low level code is from Luis Varona.\\ |
+ | The module contains the following subroutines/ | ||
- | + | '' | |
- | === Module Prob === | + | Sets seed for random number generator to integer |
- | + | called, the seed will be selected by the system. | |
- | + | \\ | |
- | === Set_seed === | + | '' |
- | + | a,b - both real (r*) or both integers or both missing.\\ | |
- | + | If a,b are missing, generates samples from uniform(0, | |
- | call set_seed(n) | + | If a,b are real (r8), generates samples from uniform(a, |
- | + | ||
- | n - integer | + | |
- | + | ||
- | Sets seed for random number generator to value n. If this subroutine is not | + | |
- | called, the seed will be selected by the system. | + | |
- | + | ||
- | + | ||
- | + | ||
- | === Gen_uniform === | + | |
- | + | ||
- | + | ||
- | + | ||
- | x=gen_uniform(a, | + | |
- | + | ||
- | a,b - both real (r*) or both integers or both missing | + | |
- | + | ||
- | If a,b are missing, generates samples from uniform(0, | + | |
- | + | ||
- | If a,b are real (r8), generates samples from uniform(a, | + | |
If a,b are integers, generates random integer between a and b. | If a,b are integers, generates random integer between a and b. | ||
- | + | '' | |
- | + | mean - (r8) scalar or vector\\ | |
- | === Gen_normal === | + | var - (r8) scalar or square matrix\\ |
- | + | x - (r8) scalar or square matrix\\ | |
- | x - gen_normal(mean, | + | |
- | + | ||
- | mean - (r8) scalar or vector | + | |
- | + | ||
- | var - (r8) scalar or square matrix | + | |
- | + | ||
- | x - (r8) scalar or square matrix | + | |
Generates x=N(mean, | Generates x=N(mean, |
prob.txt · Last modified: 2024/03/25 18:22 by 127.0.0.1