User Tools

Site Tools


prob

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
prob [2012/11/16 12:08] ignacyprob [2012/12/06 18:12] ignacy
Line 1: Line 1:
-=====Module Prob===== +======Module Prob====== 
- +Ignacy Misztal and Deukhwan Lee, University of Georgia \\ 
- +04/29/99-04/19/2001 \\
- +
-  +
-Ignacy Misztal and Deukhwan Lee, University of Georgia +
-04/29/99-04/19/2001 +
- +
-=== 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/functions: 
  
- +''call set_seed(n)'' \\ 
-=== Module Prob === +Sets seed for random number generator to integer n. If this subroutine is not 
- +called, the seed will be selected by the system. \\ 
- +\\ 
-=== Set_seed === +''x=gen_uniform(a,b)''\\ 
- +a,b - both real (r*) or both integers or both missing.\\ 
- +If a,b are missing, generates samples from uniform(0,1) distribution. \\ 
-call set_seed(n) +If a,b are real (r8), generates samples from uniform(a,b) distribution. \\
- +
-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,b) +
- +
-a,b - both real (r*) or both integers or both missing +
- +
-If a,b are missing, generates samples from uniform(0,1) distribution.  +
- +
-If a,b are real (r8), generates samples from uniform(a,b) distribution.  +
 If a,b are integers, generates random integer between a and b.  If a,b are integers, generates random integer between a and b. 
  
- +''x=gen_normal(mean,var)''\\ 
- +mean - (r8) scalar or vector\\ 
-=== Gen_normal === +var  - (r8) scalar or square matrix\\ 
- +x    - (r8) scalar or square matrix\\
-x    - gen_normal(mean,var) +
- +
-mean - (r8) scalar or vector +
- +
-var  - (r8) scalar or square matrix +
- +
-x    - (r8) scalar or square matrix+
  
 Generates x=N(mean,Var) when mean and var are scalars, or  Generates x=N(mean,Var) when mean and var are scalars, or 
prob.txt · Last modified: 2024/03/25 18:22 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki