亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? basegen.c.doc

?? 雷達工具箱
?? DOC
字號:
                                     RANDLIB.C               Library of C Routines for Random Number Generation                          Base Generator Documentation                            Compiled and Written by:                                 Barry W. Brown                                  James Lovato                                                        Department of Biomathematics, Box 237                     The University of Texas, M.D. Anderson Cancer Center                     1515 Holcombe Boulevard                     Houston, TX      77030 This work was supported by grant CA-16672 from the National Cancer Institute.                     Base Random Number GeneratorI. OVERVIEW AND DEFAULT BEHAVIORThis   set of programs contains   32 virtual random number generators.Each generator can provide 1,048,576 blocks of numbers, and each blockis of length 1,073,741,824.  Any generator can be set to the beginningor end of the current block or to its starting value.  The methods arefrom the paper  cited  immediately below, and  most of the  code  is atransliteration from the Pascal of the paper into Fortran.P.  L'Ecuyer and S. Cote.   Implementing a Random  Number Package withSplitting Facilities.  ACM Transactions on Mathematical Software 17:1,pp 98-111.Most users won't need the sophisticated  capabilities of this package,and will desire a single generator.  This single generator (which willhave a non-repeating length  of 2.3 X  10^18 numbers) is the  default.In order to accommodate this use, the concept of the current generatoris added to those of the  cited paper;  references to a  generator arealways to the current generator.  The  current generator  is initiallygenerator number  1; it  can  be  changed by   setcgn, and the ordinalnumber of the current generator can be obtained from getcgn.The user of the default can set the  initial values of the two integerseeds with setall.   If the user does  not set the   seeds, the randomnumber   generation will  use   the  default   values, 1234567890  and123456789.  The values of the current seeds can be  achieved by a callto GETSD.  Random number may be obtained as integers ranging from 1 toa large integer by reference to function ignlgi or as a floating pointnumber between 0 and 1 by a reference to function ranf.  These are theonly routines  needed by a user desiring   a single stream   of randomnumbers.II. CONCEPTSA stream of pseudo-random numbers is a sequence, each member  of whichcan be obtained either as an integer in  the range 1..2,147,483,563 oras a floating point number in the range [0..1].  The user is in chargeof which representation is desired.The method contains an algorithm  for generating a  stream with a verylong period, 2.3 X 10^18.   This  stream  in  partitioned into G (=32)virtual generators.  Each virtual generator contains 2^20 (=1,048,576)blocks   of non-overlapping   random  numbers.   Each  block is   2^30(=1,073,741,824) in length.Base Random Number Generator Page 2The state of a generator  is determined by two  integers called seeds.The seeds can be  initialized  by the  user; the initial values of thefirst must lie between 1 and 2,147,483,562, that of the second between1 and 2,147,483,398.  Each time a number is generated,  the  values ofthe seeds  change.   Three  values   of seeds are remembered   by  thegenerators  at all times:  the   value with  which the  generator  wasinitialized, the value at the beginning of the current block,  and thevalue at the beginning of the next block.   The seeds of any generatorcan be set to any of these three values at any time.Of the  32 virtual   generators, exactly one    will  be  the  currentgenerator, i.e., that one will  be used to  generate values for ignlgiand randf.   Initially, the current generator is   set to number  one.The current generator may be changed by calling setcgn, and the numberof the current generator can be obtained using getcgn.III. AN EXAMPLEAn example of  the  need  for these capabilities   is as follows.  Twostatistical techniques are being compared on  data of different sizes.The first  technique uses   bootstrapping  and is  thought to   be  asaccurate using less data   than the second method  which  employs onlybrute force.For the first method, a data set of size uniformly distributed between25 and 50 will be generated.  Then the data set  of the specified sizewill be generated and alalyzed.  The second method will  choose a dataset size between 100 and 200, generate the data  and alalyze it.  Thisprocess will be repeated 1000 times.For  variance reduction, we  want the  random numbers  used in the twomethods to be the  same for each of  the 1000 comparisons.  But methodtwo will  use more random  numbers than   method one and  without thispackage, synchronization might be difficult.With the package, it is a snap.  Use generator 1 to obtain  the samplesize for  method one and generator 2  to obtain the  data.  Then resetthe state to the beginning  of the current  block and do the same  forthe second method.  This assures that the initial data  for method twois that used by  method  one.  When both  have concluded,  advance theblock for both generators.IV.  THE INTERFACEA random number is obtained either  as a random  integer between 1 and2,147,483,562  by invoking integer  function  ignlgi (I GeNerate LarGeInteger)  or as a  random  floating point  number  between 0 and 1  byinvoking real function RANF.  Neither function has arguments.The  seed of the  first generator  can  be set by invoking  subroutineSETALL;   the values of   the seeds  of   the other 31 generators  arecalculated from this value.Base Random Number Generator Page 3The number of  the current generator  can be set by calling subroutineSETCGN, which takes a single argument, the integer generator number inthe range 1..32.  The number of the current  generator can be obtainedby invoking subroutine getcgn  which returns the number  in its singleinteger argument.V. CALLING SEQUENCES      A. SETTING THE SEED OF ALL GENERATORS**********************************************************************     void setall(long iseed1,long iseed2)               SET ALL random number generators     Sets the initial seed of generator 1 to ISEED1 and ISEED2. The     initial seeds of the other generators are set accordingly, and     all generators states are set to these seeds.     This is a transcription from Pascal to Fortran of routine     Set_Initial_Seed from the paper     L'Ecuyer, P. and Cote, S. "Implementing a Random Number Package     with Splitting Facilities." ACM Transactions on Mathematical     Software, 17:98-111 (1991)                              Arguments     iseed1 -> First of two integer seeds     iseed2 -> Second of two integer seeds**********************************************************************      B. OBTAINING RANDOM NUMBERS**********************************************************************     long ignlgi(void)               GeNerate LarGe Integer     Returns a random integer following a uniform distribution over     (1, 2147483562) using the current generator.     This is a transcription from Pascal to Fortran of routine     Random from the paper     L'Ecuyer, P. and Cote, S. "Implementing a Random Number Package     with Splitting Facilities." ACM Transactions on Mathematical     Software, 17:98-111 (1991)**********************************************************************Base Random Number Generator                                    Page 4**********************************************************************     float ranf(void)                RANDom number generator as a Function     Returns a random floating point number from a uniform distribution     over 0 - 1 (endpoints of this interval are not returned) using the     current generator     This is a transcription from Pascal to Fortran of routine     Uniform_01 from the paper     L'Ecuyer, P. and Cote, S. "Implementing a Random Number Package     with Splitting Facilities." ACM Transactions on Mathematical     Software, 17:98-111 (1991)**********************************************************************      C. SETTING AND OBTAINING THE NUMBER OF THE CURRENT GENERATOR**********************************************************************     void gscgn(long getset,long *g)                         Get/Set GeNerator     Gets or returns in G the number of the current generator                              Arguments     getset --> 0 Get                1 Set     g <-- Number of the current random number generator (1..32)**********************************************************************        D. OBTAINING OR CHANGING SEEDS IN CURRENT GENERATOR***********************************************************************     void advnst(long k)               ADV-a-N-ce ST-ate     Advances the state  of  the current  generator  by 2^K values  and     resets the initial seed to that value.     This is  a  transcription from   Pascal to  Fortran    of  routine     Advance_State from the paper     L'Ecuyer, P. and  Cote, S. "Implementing  a  Random Number Package     with  Splitting   Facilities."  ACM  Transactions  on Mathematical     Software, 17:98-111 (1991)                              Arguments     k -> The generator is advanced by2^K values**********************************************************************Base Random Number Generator                                    Page 5**********************************************************************     void getsd(long *iseed1,long *iseed2)               GET SeeD     Returns the value of two integer seeds of the current generator     This  is   a  transcription from  Pascal   to  Fortran  of routine     Get_State from the paper     L'Ecuyer, P. and  Cote,  S. "Implementing a Random Number  Package     with   Splitting Facilities."  ACM  Transactions   on Mathematical     Software, 17:98-111 (1991)                              Arguments     iseed1 <- First integer seed of generator G     iseed2 <- Second integer seed of generator G********************************************************************************************************************************************     void initgn(long isdtyp)          INIT-ialize current G-e-N-erator     Reinitializes the state of the current generator     This is a transcription from Pascal to Fortran of routine     Init_Generator from the paper     L'Ecuyer, P. and Cote, S. "Implementing a Random Number Package     with Splitting Facilities." ACM Transactions on Mathematical     Software, 17:98-111 (1991)                              Arguments     isdtyp -> The state to which the generator is to be set          isdtyp = -1  => sets the seeds to their initial value          isdtyp =  0  => sets the seeds to the first value of                          the current block          isdtyp =  1  => sets the seeds to the first value of                          the next block**********************************************************************Base Random Number Generator                                    Page 6**********************************************************************     void setsd(long iseed1,long iseed2)               SET S-ee-D of current generator     Resets the initial  seed of  the current  generator to  ISEED1 and     ISEED2. The seeds of the other generators remain unchanged.     This is a transcription from Pascal to Fortran of routine     Set_Seed from the paper     L'Ecuyer, P. and Cote, S. "Implementing a Random Number Package     with Splitting Facilities." ACM Transactions on Mathematical     Software, 17:98-111 (1991)                              Arguments     iseed1 -> First integer seed     iseed2 -> Second integer seed**********************************************************************      E. MISCELLANY**********************************************************************     long mltmod(long a,long s,long m)                    Returns (A*S) MOD M     This is a transcription from Pascal to Fortran of routine     MULtMod_Decompos from the paper     L'Ecuyer, P. and Cote, S. "Implementing a Random Number Package     with Splitting Facilities." ACM Transactions on Mathematical     Software, 17:98-111 (1991)                              Arguments     a, s, m  -->**********************************************************************Base Random Number Generator                                    Page 7**********************************************************************     void setant(long qvalue)               SET ANTithetic     Sets whether the current generator produces antithetic values.  If     X   is  the value  normally returned  from  a uniform [0,1] random     number generator then 1  - X is the antithetic  value. If X is the     value  normally  returned  from a   uniform  [0,N]  random  number     generator then N - 1 - X is the antithetic value.     All generators are initialized to NOT generate antithetic values.     This is a transcription from Pascal to Fortran of routine     Set_Antithetic from the paper     L'Ecuyer, P. and Cote, S. "Implementing a Random Number Package     with Splitting Facilities." ACM Transactions on Mathematical     Software, 17:98-111 (1991)                              Arguments     qvalue -> nonzero if generator G is to generating antithetic                    values, otherwise zero**********************************************************************

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
aaa欧美色吧激情视频| 精品夜夜嗨av一区二区三区| 亚洲福利电影网| 国精产品一区一区三区mba视频| 成人app软件下载大全免费| 日韩一二三四区| 一区二区三区久久| 99re视频精品| 久久久久久久网| 麻豆精品在线看| 欧美日韩国产免费一区二区| 亚洲日本va在线观看| 丁香六月综合激情| 国产亚洲精品福利| 久久国产免费看| 91精品国模一区二区三区| 亚洲天堂2016| 91日韩一区二区三区| 亚洲国产成人私人影院tom| 国产麻豆91精品| 久久亚洲综合色| 国产一区二区三区在线观看精品| 7777精品伊人久久久大香线蕉完整版| 亚洲女性喷水在线观看一区| 99久久婷婷国产综合精品| 国产精品久久三区| 成人动漫精品一区二区| 欧美国产欧美综合| 成人激情动漫在线观看| 中文字幕欧美激情| 午夜精品一区二区三区免费视频| 成人app下载| 日本一区二区电影| 国产成人av影院| 日本一区二区三区在线观看| 国产丶欧美丶日本不卡视频| 久久亚洲私人国产精品va媚药| 老色鬼精品视频在线观看播放| 日韩视频123| 国产伦精品一区二区三区免费迷| 欧美精品一区男女天堂| 国产伦理精品不卡| 一区在线观看免费| 色综合久久久久| 亚洲gay无套男同| 91精品国产综合久久精品麻豆| 99久久精品国产毛片| 亚洲一区在线看| 欧美一区二区视频在线观看2020| 婷婷丁香久久五月婷婷| 日韩一区精品视频| 91精品国产综合久久福利软件| 免费看日韩a级影片| 久久综合色之久久综合| 高清成人免费视频| 一区二区三区不卡视频| 欧美一区欧美二区| 成人午夜av电影| 亚洲成人免费在线观看| 日韩美女视频一区二区在线观看| 高潮精品一区videoshd| 亚洲一区二区三区美女| 久久久蜜臀国产一区二区| 色综合久久久久综合99| 极品少妇一区二区三区精品视频| 国产欧美日韩三区| 在线成人高清不卡| 成人av网址在线| 日韩高清在线不卡| 亚洲欧美在线观看| 精品少妇一区二区三区| 色综合av在线| 日本亚洲一区二区| 亚洲国产精品精华液2区45| 成人av影视在线观看| 国产91精品一区二区麻豆亚洲| 一区二区三区在线观看动漫| 欧美成人福利视频| 欧美亚洲一区二区在线| 高清不卡在线观看| 麻豆精品一二三| 洋洋av久久久久久久一区| 久久久久国色av免费看影院| 欧美性一级生活| 成人看片黄a免费看在线| 青娱乐精品视频在线| 亚洲一区二区精品久久av| 国产精品久久久久久妇女6080 | 久久66热偷产精品| 亚洲日本欧美天堂| 欧美高清一级片在线观看| 久久精品亚洲乱码伦伦中文| 色综合一区二区三区| 国产成人精品三级| 蜜桃精品在线观看| 在线观看三级视频欧美| 国产一区二区看久久| 秋霞av亚洲一区二区三| 婷婷丁香激情综合| 午夜精品爽啪视频| 亚洲国产精品久久不卡毛片 | 中文av字幕一区| 欧美精品一区二区久久婷婷| 欧美视频在线一区| 欧洲精品一区二区三区在线观看| 白白色 亚洲乱淫| 成人黄色片在线观看| 国产成人超碰人人澡人人澡| 极品少妇一区二区| 国产精品一区二区免费不卡 | 欧美午夜精品久久久久久超碰| av网站一区二区三区| 成人午夜激情在线| 91丨国产丨九色丨pron| 色综合欧美在线视频区| 色94色欧美sute亚洲线路二| 一本到不卡精品视频在线观看| 99精品偷自拍| 欧美亚洲国产怡红院影院| 欧洲色大大久久| 3d动漫精品啪啪1区2区免费| 欧美一区二区视频在线观看2020| 欧美电影免费观看高清完整版在| 精品日韩成人av| 国产精品久久毛片av大全日韩| 最新国产精品久久精品| 亚洲精品免费在线播放| 亚洲444eee在线观看| 久久99精品视频| 国产91精品入口| 91美女片黄在线观看91美女| 欧美亚洲一区三区| 精品国产乱码久久久久久久久| 国产日韩欧美精品电影三级在线| 国产精品免费观看视频| 亚洲综合av网| 久久国产精品免费| 99久久综合色| 欧美裸体bbwbbwbbw| 国产亚洲欧美日韩俺去了| 1000部国产精品成人观看| 五月综合激情婷婷六月色窝| 国产一区二区三区在线观看免费视频 | 亚洲欧洲中文日韩久久av乱码| 亚洲不卡在线观看| 国产91丝袜在线播放0| 日本韩国一区二区三区| 精品少妇一区二区三区免费观看| 中文字幕亚洲不卡| 天堂资源在线中文精品| 国产精品 欧美精品| 欧美日韩国产经典色站一区二区三区| 日韩欧美一区在线| 成人欧美一区二区三区| 人禽交欧美网站| 91浏览器入口在线观看| 精品少妇一区二区三区视频免付费 | 麻豆精品国产91久久久久久| 成人精品一区二区三区四区| 欧美性受xxxx| 国产精品剧情在线亚洲| 日本欧美一区二区| 在线看国产日韩| 国产偷国产偷精品高清尤物| 天天做天天摸天天爽国产一区 | 欧美一二三区在线观看| 一色屋精品亚洲香蕉网站| 国产一区不卡精品| 欧美剧在线免费观看网站| 国产精品成人免费| 国产综合色精品一区二区三区| 欧美日韩精品三区| 亚洲激情五月婷婷| av电影在线观看一区| 久久久噜噜噜久久中文字幕色伊伊| 首页国产丝袜综合| 欧美日韩综合不卡| 亚洲人成人一区二区在线观看 | 国内精品不卡在线| 制服视频三区第一页精品| 亚洲国产精品自拍| 精品国产sm最大网站免费看| 一区二区三区在线影院| 丰满白嫩尤物一区二区| 精品久久免费看| 麻豆国产欧美一区二区三区| 欧美三级中文字幕在线观看| 亚洲美女屁股眼交| 色综合天天天天做夜夜夜夜做| 国产精品嫩草影院av蜜臀| 国产一区视频网站| 国产欧美中文在线| 国产精品夜夜嗨| 国产日韩综合av| 粉嫩13p一区二区三区| 精品免费国产一区二区三区四区| 青青国产91久久久久久| 日韩欧美一二三四区| 捆绑调教美女网站视频一区| 欧美成人国产一区二区|