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

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

?? randomnumbersin c_bygeorgemarsaglia_etc.htm

?? QPSK環境下的仿真性能分析
?? HTM
?? 第 1 頁 / 共 5 頁
字號:
   For the super cautious, (KISS+SWB) in an expression   would provide a random 32-bit integer from   a sequence with period > 2^7700, and would only   add some 300 nanoseconds to the computing   time for that expression.                         *//* The KISS generator, (Keep It Simple Stupid), is   designed to combine the two multiply-with-carry   generators in MWC with the 3-shift register SHR3   and the congruential generator CONG, using   addition and exclusive-or. Period about 2^123. It   is one of my favorite generators.   *//* The  MWC generator concatenates two 16-bit  multiply-with-carry generators, x(n)=36969x(n-1)+carry,  y(n)=18000y(n-1)+carry  mod 2^16, has  period  about  2^60 and seems to pass all tests of randomness. A favorite  stand-alone generator---faster than KISS, which contains it.*//* SHR3 is a 3-shift-register generator with   period 2^32-1. It uses   y(n)=y(n-1)(I+L^17)(I+R^13)(I+L^5), with the   y's viewed as binary vectors, L the 32x32   binary matrix that shifts a vector left 1, and   R its transpose.  SHR3 seems to pass all except   the binary rank test, since 32 successive   values, as binary vectors, must be linearly   independent, while 32 successive truly random   32-bit integers, viewed as binary vectors, will   be linearly independent only about 29% of the time.   *//* CONG is a congruential generator with the   widely used 69069 as multiplier:   x(n)=69069x(n-1)+1234567.  It has period 2^32.   The leading half of its 32 bits seem to pass   all tests, but bits in the last half are too   regular.                               *//* LFIB4 is an extension of the class that I have   previously defined as  lagged Fibonacci   generators: x(n)=x(n-r) op x(n-s), with the x's   in a finite set over which there is a binary   operation op, such as +,- on integers mod 2^32,   * on odd such integers, exclusive-or (xor) on   binary vectors. Except for those using   multiplication, lagged Fibonacci generators   fail various tests of randomness, unless the   lags are very long.  To see if more than two   lags would serve to overcome the problems of 2-   lag generators using +,- or xor, I have   developed the 4-lag generator LFIB4:   x(n)=x(n-256)+x(n-179)+x(n-119)+x(n-55) mod 2^32.   Its period is 2^31*(2^256-1), about 2^287, and   it seems to pass all tests---in particular,   those of the kind for which 2-lag generators   using +,-,xor seem to fail.  For even more   confidence in its suitability,  LFIB4 can be   combined with KISS, with a resulting period of   about 2^410: just use (KISS+LFIB4) in any C   expression.                               *//* SWB is a subtract-with-borrow generator that I   developed to give a simple method for producing   extremely long periods:   x(n)=x(n-222)-x(n-237)-borrow mod 2^32.   The 'borrow' is 0 unless set to 1 if computing   x(n-1) caused overflow in 32-bit integer   arithmetic. This generator has a very long   period, 2^7098(2^480-1), about 2^7578. It seems   to pass all tests of randomness, but,   suspicious of a generator so simple and fast   (62 nanosecs at 300MHz), I would suggest   combining SWB with KISS, MWC, SHR3, or CONG. *//* Finally, because many simulations call for   uniform random variables in 0&LT;v&LT;1 or -1&LT;v&LT;1, I   use #define statements that permit inclusion of   such variates directly in expressions:  using   UNI will provide a uniform random real (float)   in (0,1), while VNI will provide one in (-1,1).  *//* All of these: MWC, SHR3, CONG, KISS, LFIB4,   SWB, UNI and VNI, permit direct insertion of   the desired random quantity into an expression,   avoiding the time and space costs of a function   call. I call these in-line-define functions.   To use them, static variables z,w,jsr and   jcong should be assigned seed values other than   their initial values.  If LFIB4 or SWB are   used, the static table t[256] must be   initialized.  A sample procedure follows. *//* A note on timing:  It is difficult to provide   exact time costs for inclusion of one of these   in-line-define functions in an expression.   Times may differ widely for different   compilers, as the C operations may be deeply   nested and tricky. I suggest these rough   comparisons, based on averaging ten runs of a   routine that is essentially a long loop:   for(i=1;i&LT;10000000;i++) L=KISS; then with KISS   replaced with SHR3, CONG,... or KISS+SWB, etc.   The times on my home PC, a Pentium 300MHz, in   nanoseconds: LFIB4=64; CONG=90; SWB=100;   SHR3=110; KISS=209; KISS+LFIB4=252; KISS+SWB=310.     */<HR><A NAME = "369B66AB.6CDED9F8@ix.netcom.com"></A>Subject: Re: Random numbers in C: Some suggestions.Date: Tue, 12 Jan 1999 07:13:47 -0800From: Charles Bond &LT;cbond@ix.netcom.com>Message-ID: &LT;369B66AB.6CDED9F8@ix.netcom.com>References: <A HREF = "#369B5E30.65A55FD1@stat.fsu.edu">&LT;369B5E30.65A55FD1@stat.fsu.edu></A>Newsgroups: sci.stat.math,sci.math,sci.math.num-analysis,sci.crypt,sci.physicsLines: 253Thanks for the post. I want to comment on the SWB routine. I've beenusinga similar routine in high speed simulations for years. Small departuresfromstatistically correct randomness are not a problem for my application,butspeed is. I believe Knuth briefly discussed the method with guardedapproval -- constrained by the concern that there was no real theorybehind it. Do you know if any theoretical work has been done sinceKnuth'sbook to justify SWB?George Marsaglia wrote:> This posting ends with  17  lines of> C code that provide eight different> in-line random number generators, six for> random 32-bit integers and two for uniform> reals in (0,1) and (-1,1).> Comments are interspersed with that> code. Various combinations of the six in-line> integer generators may put in C expressions to> provide a wide variety of very fast, long period,> well-tested RNG's. I invite comments, feedback,> verifications and timings.>> First, there is narrative giving background> for this posting; you may want to skip it.>> Narrative:>> Having had experience in producing and> testing for randomness in computers,> I am frequently asked to suggest good> random number generators (RNG's), test> RNG's, or comment on existing RNG's.  Many> recent queries have been in two areas:> (1) requests for implementations in C and> (2) comments on generators with immense periods,> particularly the Mersenne Twister.>> This posting is mainly for category (1),> for which I suggest a set of C implementations> of RNG's I have developed.  C implementations> of my DIEHARD battery of tests will be> discussed elsewhere, and Narasimhan's GUI> version is expected to be released soon.>> For (2), I merely repeat what I have said> in response to various queries: the Mersenne> Twister looks good, but it seems to be essentially> a lagged Fibonacci RNG using the exclusive-or> (xor) operation, and experience has shown that> lagged Fibonacci generators using xor provide> unsatisfactory 'randomness' unless the lags are> very long, and even for those with very long lags,> (and even for those using + or - rather than xor),> many people (I among them) are inclined to be> cautious about sequences based on such a simple> operation as: each new integer is the xor, (or sum,> or difference), of two earlier ones.  To be sure,> the resulting integers can be "twisted", but not,> I think, as simply or as safely as combining, say> by addition, with members of a sequence from a> (shorter period) generator that has itself passed> extensive tests of randomness.>> I also reply that it does not take an immense> program (as, for example, in posted listings> of Twister) to produce a more satisfactory RNG> with an immense period, and give this example,> on which I will expand below: Inclusion of>> #define SWB ( t[c+237]=(x=t[c+15])-(y=t[++c]+(x&LT;y)) )>> together with suitably initialized seeds in>> static unsigned long x,y,t[256]; unsigned char c;>> will allow you to put the string SWB in any C> expression and it will provide, in about 100 nanosecs,> a 32-bit random integer with period  2^7578. (Here> and below, ^ means exponent, except in C expressions,> where it means xor (exclusive-or).>> Now for the (2) part, in which I suggest a number> of C implementations and invite comment and feedback.> Most of these were previously developed and tested> via Fortran versions.  I list eight RNG's, each of> them by means of C's powerful #define device. This> provides  fast, compact implementation, allows> insertion of the required random variable directly> into an expression, and, finally, provides a good> selection of RNG's for use individually or in> combination.  The latter makes it possible to> further confirm what empirical results suggest:> combining two or more RNG's provides better,> (or no worse) randomness, and for encryption enthusiasts:> combination generators are harder to "crack".>> For those wishing to try these eight RNG's:>> At the top of your C program, include these> definitions and the static variables that follow.> Everything past this line is either C code or comment.> -------------------------------------------------->> #define UL unsigned long> #define znew  ((z=36969*(z&65535)+(z>>16))&LT;&LT;16)> #define wnew  ((w=18000*(w&65535)+(w>>16))&65535)> #define MWC   (znew+wnew)> #define SHR3  (jsr=(jsr=(jsr=jsr^(jsr&LT;&LT;17))^(jsr>>13))^(jsr&LT;&LT;5))> #define CONG  (jcong=69069*jcong+1234567)> #define KISS  ((MWC^CONG)+SHR3)> #define LFIB4 (t[c]=t[c]+t[c+58]+t[c+119]+t[++c+178])> #define SWB   (t[c+237]=(x=t[c+15])-(y=t[++c]+(x&LT;y)))> #define UNI   (KISS*2.328306e-10)> #define VNI   ((long) KISS)*4.656613e-10> /*  Global static variables: */>  static UL z=362436069, w=521288629, jsr=123456789, jcong=380116160;>  static UL t[256];>  static UL x=0,y=0; static unsigned char c=0;>> /* Random seeds must be used to reset z,w,jsr,jcong and> the table t[256]  Here is an example procedure, using KISS: */>>  void settable(UL i1,UL i2,UL i3,UL i4)>  { int i; z=i1;w=i2,jsr=i3; jcong=i4;>  for(i=0;i&LT;256;i++)  t[i]=KISS;        }>> /*  End of C code;  Only comments follow. Stick the above>    17 lines in your simulation programs, initialize the table,>    and have a variety of promising RNG's at your disposal.  */>> /* You may want use more complicated names for the>    above simple 1-letter variable names: z,w,x,y,t,c,>    to avoid clashing with favorites in your code.    */>> /* Any one of KISS, MWC, LFIB4, SWB, SHR3, or CONG>    can be used in an expression to provide a random>    32-bit integer, and UNI in an expression will>    provide a random uniform in (01), or VNI in (-1,1).>    For example, for int i, float v; i=(MWC>>24); will>    provide a random byte, while v=4.+3.*UNI; will>    provide a uniform v in the interval 4. to 7.>    For the super cautious, (KISS+SWB) in an expression>    would provide a random 32-bit integer from>    a sequence with period > 2^7700, and would only>    add some 300 nanoseconds to the computing>    time for that expression.                         */>> /* The KISS generator, (Keep It Simple Stupid), is>    designed to combine the two multiply-with-carry>    generators in MWC with the 3-shift register SHR3>    and the congruential generator CONG, using>    addition and exclusive-or. Period about 2^123. It>    is one of my favorite generators.   */>> /* The  MWC generator concatenates two 16-bit>   multiply-with-carry generators, x(n)=36969x(n-1)+carry,>   y(n)=18000y(n-1)+carry  mod 2^16, has  period  about>   2^60 and seems to pass all tests of randomness. A favorite>   stand-alone generator---faster than KISS, which contains it.*/>> /* SHR3 is a 3-shift-register generator with>    period 2^32-1. It uses>    y(n)=y(n-1)(I+L^17)(I+R^13)(I+L^5), with the>    y's viewed as binary vectors, L the 32x32>    binary matrix that shifts a vector left 1, and>    R its transpose.  SHR3 seems to pass all except>    the binary rank test, since 32 successive>    values, as binary vectors, must be linearly>    independent, while 32 successive truly random>    32-bit integers, viewed as binary vectors, will>    be linearly independent only about 29% of the time.   */>> /* CONG is a congruential generator with the>    widely used 69069 as multiplier:>    x(n)=69069x(n-1)+1234567.  It has period 2^32.>    The leading half of its 32 bits seem to pass>    all tests, but bits in the last half are too>    regular.                               */>> /* LFIB4 is an extension of the class that I have>    previously defined as  lagged Fibonacci>    generators: x(n)=x(n-r) op x(n-s), with the x's>    in a finite set over which there is a binary>    operation op, such as +,- on integers mod 2^32,>    * on odd such integers, exclusive-or (xor) on>    binary vectors. Except for those using>    multiplication, lagged Fibonacci generators>    fail various tests of randomness, unless the>    lags are very long.  To see if more than two>    lags would serve to overcome the problems of 2->    lag generators using +,- or xor, I have>    developed the 4-lag generator LFIB4:>    x(n)=x(n-256)+x(n-179)+x(n-119)+x(n-55) mod 2^32.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩影院免费视频| 亚洲午夜日本在线观看| 欧美二区三区91| 欧美在线看片a免费观看| 91黄色在线观看| 在线观看亚洲一区| 欧美色精品在线视频| 在线不卡一区二区| 这里只有精品电影| 久久久亚洲综合| 欧美国产一区在线| 中文字幕一区二区日韩精品绯色| 国产精品国产三级国产a| 国产精品久久777777| 一个色在线综合| 日本不卡的三区四区五区| 久久精品国产亚洲aⅴ | 综合分类小说区另类春色亚洲小说欧美 | 九一九一国产精品| 国产精品996| www.色精品| 欧美日韩国产大片| 久久蜜桃香蕉精品一区二区三区| 国产欧美日韩精品一区| 亚洲一区二区中文在线| 理论片日本一区| 成人动漫一区二区三区| 这里只有精品免费| 亚洲国产精品国自产拍av| 亚洲成人自拍偷拍| 国产精品资源在线看| 色综合久久久久久久| 日韩免费观看高清完整版| 国产精品无圣光一区二区| 性久久久久久久| 成人免费av网站| 日韩一区二区三区电影在线观看 | 中文一区在线播放| 亚洲综合激情另类小说区| 男女视频一区二区| 成人动漫精品一区二区| 欧美tickling网站挠脚心| 1024精品合集| 国产成人综合在线播放| 欧美挠脚心视频网站| 国产精品麻豆欧美日韩ww| 美国av一区二区| 欧美系列日韩一区| 国产精品福利av| 国产精品亚洲一区二区三区在线| 欧美日韩高清影院| 亚洲欧美区自拍先锋| 成人丝袜18视频在线观看| 制服丝袜一区二区三区| 亚洲一区二区三区四区在线免费观看 | 7777精品伊人久久久大香线蕉完整版 | 成人性生交大片免费看在线播放| 欧美电影在线免费观看| 一区二区三区四区乱视频| 成人一区二区三区在线观看| 日韩一二三四区| 五月天国产精品| 91成人国产精品| 亚洲色图20p| 97久久精品人人做人人爽50路| 国产日产精品1区| 高清在线不卡av| 国产校园另类小说区| 国产精品一二三在| 久久亚洲免费视频| 国模少妇一区二区三区| 欧美一区二区三区免费视频| 五月婷婷色综合| 4438亚洲最大| 人人爽香蕉精品| 欧美大片在线观看| 国产资源精品在线观看| 久久久久久电影| 粉嫩av亚洲一区二区图片| 亚洲欧洲日韩综合一区二区| 一本一道波多野结衣一区二区| 中文字幕一区二区三区四区 | 久久电影网站中文字幕| 日韩一区二区精品葵司在线| 免费在线观看日韩欧美| 精品国产3级a| 国产乱妇无码大片在线观看| 国产拍欧美日韩视频二区| 国产风韵犹存在线视精品| 国产三级精品三级在线专区| 99久久精品国产一区| 一区二区三区av电影| 欧美日韩国产首页在线观看| 麻豆91在线观看| 国产精品久久久久久久久免费丝袜 | 亚洲一区二区三区四区的| 欧美日韩久久不卡| 麻豆精品在线视频| 国产人久久人人人人爽| 91蜜桃免费观看视频| 天涯成人国产亚洲精品一区av| 日韩欧美国产综合一区| 国产成人av电影在线| 一区二区三区免费| 欧美一区二区视频在线观看2020 | 亚洲欧美另类久久久精品| 欧美r级电影在线观看| 国产精品中文字幕一区二区三区| 精品日韩一区二区| 免费成人在线观看| 99久久精品国产一区二区三区| 全部av―极品视觉盛宴亚洲| 午夜精品免费在线| 日韩精品乱码av一区二区| 视频一区欧美精品| 日韩高清电影一区| 精品午夜久久福利影院| 精品无人码麻豆乱码1区2区| 九九国产精品视频| 国产揄拍国内精品对白| 国产91丝袜在线18| 大白屁股一区二区视频| 波多野结衣一区二区三区 | 成人av网站在线观看免费| 成人精品国产免费网站| 99国产精品国产精品久久| 欧洲色大大久久| 制服丝袜在线91| 国产亚洲一区二区三区四区| 国产精品久久久久久久久免费相片| 国产精品精品国产色婷婷| 亚洲乱码国产乱码精品精可以看 | 国产一区二区福利| 成人久久视频在线观看| 色又黄又爽网站www久久| 欧美日韩精品一区二区天天拍小说| 91精品久久久久久久久99蜜臂| 久久网站最新地址| 亚洲欧美日本在线| 奇米色一区二区| 成人不卡免费av| 欧美日韩免费一区二区三区| 日韩欧美资源站| 日韩理论片中文av| 免费日本视频一区| a在线欧美一区| 91精品欧美福利在线观看| 久久久www成人免费毛片麻豆| 樱花草国产18久久久久| 精品一区二区三区免费视频| 99re热这里只有精品免费视频 | 亚洲123区在线观看| 国产成人免费网站| 欧美日韩亚洲综合一区二区三区| 精品久久一二三区| 一区二区三区欧美视频| 国产精品亚洲专一区二区三区| 欧美少妇bbb| 国产精品久久久久久亚洲伦| 日本vs亚洲vs韩国一区三区二区| 成人av集中营| 欧美xxxx在线观看| 亚洲h精品动漫在线观看| 风间由美一区二区三区在线观看 | 欧美极品xxx| 日韩精品亚洲专区| 色综合久久综合中文综合网| 久久一区二区三区国产精品| 香蕉乱码成人久久天堂爱免费| 成人丝袜18视频在线观看| 日韩欧美在线影院| 亚洲va韩国va欧美va| 99久久精品国产麻豆演员表| 久久综合九色综合97婷婷| 午夜国产不卡在线观看视频| 91在线高清观看| 国产欧美日韩不卡| 国产乱人伦偷精品视频不卡| 日韩一区二区三免费高清| 午夜精品免费在线观看| 色狠狠av一区二区三区| 国产精品丝袜黑色高跟| 国产精品中文字幕一区二区三区| 日韩一二三区不卡| 美女在线一区二区| 欧美精品777| 五月激情综合网| 欧美巨大另类极品videosbest| 亚洲精选一二三| 色狠狠一区二区| 亚洲在线视频免费观看| 欧美亚洲一区二区在线| 樱花影视一区二区| 一本久久a久久免费精品不卡| 国产精品理论片| 97精品国产露脸对白| 亚洲欧美一区二区三区国产精品| 97久久精品人人做人人爽 | 国产欧美精品一区| 国产成人精品午夜视频免费|