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

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

?? randomnumbersin c_bygeorgemarsaglia_etc.htm

?? QPSK環境下的仿真性能分析
?? HTM
?? 第 1 頁 / 共 5 頁
字號:
These should work (aside the possibility of clashing with local names)#define SHR3  (jsr=jsr^(jsr&LT;&LT;17), jsr=jsr^(jsr>>13), jsr=jsr^(jsr&LT;&LT;5))#define LFIB4 (t[c] = t[c]+t[c+58]+t[c+119]+t[c+179], t[++c])#define SWB   (x = t[c+15], t[c+237] = x-(y=t[c+1]+(x&LT;y)), t[++c])Dmitriradford@cs.toronto.edu (Radford Neal) writes:> >George Marsaglia &LT;geo@stat.fsu.edu> writes:> >> >> #define LFIB4 (t[c]=t[c]+t[c+58]+t[c+119]+t[c+178],t[++c])> >> #define SWB   (t[c+237]=(x=t[c+15])-(y=t[c]+(x&LT;y)),t[++c])> >> > In article &LT;790f49x60.fsf@poole.statgen.ncsu.edu>,> Dmitri Zaykin &LT;zaykin@statgen.ncsu.edu> wrote:> > >Shouldn't these be> >> >#define LFIB4 (t[c]=t[c]+t[c+58]+t[c+119]+t[c+179], ++c)> >#define SWB   (t[c+237]=(x=t[c+15])-(y=t[c+1]+(x&LT;y)), ++c)> >> > This doesn't work either.  I believe that it is undefined whether the> comparison x&LT;y uses the new or the old value of x.  The SHR3 macro> in the original source also suffers from this flaw.<HR><A NAME = "36A21A2C.AD5145D1@concentric.net"></A>Subject: Re: Random numbers for C: Improvements.Date: 17 Jan 1999 08:06:29 PSTFrom: Ramin Sina &LT;rsina@concentric.net>Message-ID: &LT;36A21A2C.AD5145D1@concentric.net>References: <A HREF = "#7pv8f55tf.fsf@poole.statgen.ncsu.edu">&LT;7pv8f55tf.fsf@poole.statgen.ncsu.edu></A>Newsgroups: sci.math,sci.math.num-analysis,sci.stat.mathLines: 34Dmitri Zaykin wrote:> These should work (aside the possibility of clashing with local names)>> #define SHR3  (jsr=jsr^(jsr&LT;&LT;17), jsr=jsr^(jsr>>13), jsr=jsr^(jsr&LT;&LT;5))> #define LFIB4 (t[c] = t[c]+t[c+58]+t[c+119]+t[c+179], t[++c])> #define SWB   (x = t[c+15], t[c+237] = x-(y=t[c+1]+(x&LT;y)), t[++c])>> Dmitri>> radford@cs.toronto.edu (Radford Neal) writes:>> > >George Marsaglia &LT;geo@stat.fsu.edu> writes:> > >> > >> #define LFIB4 (t[c]=t[c]+t[c+58]+t[c+119]+t[c+178],t[++c])> > >> #define SWB   (t[c+237]=(x=t[c+15])-(y=t[c]+(x&LT;y)),t[++c])> > >> >> >Could someone please post a short example code on how to use these inpractice. I am lost in the discussion in this thread, but I would likevery much to understand how to use these for example to generate 1000uniform random numbers between betwen A and B ( say 5 and 10) .Thanks very much,Ramin Sina---------------------------------------------------------- Ramin Sina                         rsina@concentric.net<HR><A NAME = "77vrbs$pmj$1@sun500.nas.nasa.gov"></A>Subject: Re: Random numbers for C: Improvements.Date: 18 Jan 1999 17:34:52 GMTFrom: hook@nas.nasa.gov (Ed Hook)Message-ID: &LT;77vrbs$pmj$1@sun500.nas.nasa.gov>References: <A HREF = "#7pv8f55tf.fsf@poole.statgen.ncsu.edu">&LT;7pv8f55tf.fsf@poole.statgen.ncsu.edu></A>Newsgroups: sci.math,sci.math.num-analysis,sci.stat.mathLines: 25In article &LT;7pv8f55tf.fsf@poole.statgen.ncsu.edu>,               zaykin@statgen.ncsu.edu (Dmitri Zaykin) writes:|> These should work (aside the possibility of clashing with local names)|> |> #define SHR3  (jsr=jsr^(jsr&LT;&LT;17), jsr=jsr^(jsr>>13), jsr=jsr^(jsr&LT;&LT;5))|> #define LFIB4 (t[c] = t[c]+t[c+58]+t[c+119]+t[c+179], t[++c])|> #define SWB   (x = t[c+15], t[c+237] = x-(y=t[c+1]+(x&LT;y)), t[++c])|> |> Dmitri|>    No -- 'SHR3' and 'LFIB4' are OK, but your version of 'SWB'   still invokes the dreaded undefined behavior. In the second   calculation, there's no sequence point to separate the use   of 'y' to determine the value of 'x&LT;y' and the assignment to 'y'.   One might argue that this is not particularly relevant, since   we're trying to simulate randomness anyhow ... except that, once   undefined behavior rears its ugly head, the code is allowed to   simply dump core and die ... --  Ed Hook                              |       Copula eam, se non posit MRJ Technology Solutions, Inc.       |         acceptera jocularum. NAS, NASA Ames Research Center       | I can barely speak for myself, much  Internet: hook@nas.nasa.gov          |         less for my employer<HR><A NAME = "78207l$1l8$1@due.unit.no"></A>Subject: Re: Random numbers for C: Improvements.Date: 19 Jan 1999 13:10:13 GMTFrom: orjanjo@math.ntnu.no (Orjan Johansen)Message-ID: &LT;78207l$1l8$1@due.unit.no>References: <A HREF = "#77vrbs$pmj$1@sun500.nas.nasa.gov">&LT;77vrbs$pmj$1@sun500.nas.nasa.gov></A>Newsgroups: sci.math,sci.math.num-analysis,sci.stat.mathLines: 21In article &LT;77vrbs$pmj$1@sun500.nas.nasa.gov>,Ed Hook &LT;hook@nas.nasa.gov> wrote:>In article &LT;7pv8f55tf.fsf@poole.statgen.ncsu.edu>,>               zaykin@statgen.ncsu.edu (Dmitri Zaykin) writes:[snip]>|> #define SWB   (x = t[c+15], t[c+237] = x-(y=t[c+1]+(x&LT;y)), t[++c])[snip]>   No -- 'SHR3' and 'LFIB4' are OK, but your version of 'SWB'>   still invokes the dreaded undefined behavior. In the second>   calculation, there's no sequence point to separate the use>   of 'y' to determine the value of 'x&LT;y' and the assignment to 'y'.[snip]I am not a programmer by trade, but I have a little knowledge of C.Surely in an expression of the form y=..., the evaluation of ... isguaranteed to happen before the assignment.  As far as I understand,what is not guaranteed is that any assignments in ... would happenbefore the one to y.Greetings,豶jan.<HR><A NAME = "36a4cb5e.39101741@news.snafu.de"></A>Subject: Re: Random numbers for C: Improvements.Date: Tue, 19 Jan 1999 18:29:34 GMTFrom: horst.kraemer@snafu.de (Horst Kraemer)Message-ID: &LT;36a4cb5e.39101741@news.snafu.de>References: <A HREF = "#77vrbs$pmj$1@sun500.nas.nasa.gov">&LT;77vrbs$pmj$1@sun500.nas.nasa.gov></A>Newsgroups: sci.math,sci.math.num-analysis,sci.stat.mathLines: 39On 18 Jan 1999 17:34:52 GMT, hook@nas.nasa.gov (Ed Hook) wrote:> In article &LT;7pv8f55tf.fsf@poole.statgen.ncsu.edu>,>                zaykin@statgen.ncsu.edu (Dmitri Zaykin) writes:> |> These should work (aside the possibility of clashing with local names)> |> > |> #define SHR3  (jsr=jsr^(jsr&LT;&LT;17), jsr=jsr^(jsr>>13), jsr=jsr^(jsr&LT;&LT;5))> |> #define LFIB4 (t[c] = t[c]+t[c+58]+t[c+119]+t[c+179], t[++c])> |> #define SWB   (x = t[c+15], t[c+237] = x-(y=t[c+1]+(x&LT;y)), t[++c])> |> > |> Dmitri> |> > >    No -- 'SHR3' and 'LFIB4' are OK, but your version of 'SWB'>    still invokes the dreaded undefined behavior. In the second>    calculation, there's no sequence point to separate the use>    of 'y' to determine the value of 'x&LT;y' and the assignment to 'y'.Sorry. No sequence point is needed between reading an writing to anlvalue.According to your theory	y = y - 1would produce undefined behaviour, too ....What produces undefined behaviour in C is _modifying_ an lvalue morethan once between the last and next sequence point. There is only onemodification of y in the expression	 t[c+237] = x-(y=t[c+1]+(x&LT;y))RegardsHorst<HR><A NAME = "77t9ot$15ha@b.stat.purdue.edu"></A>Subject: Re: Random numbers for C: Improvements.Date: 17 Jan 1999 13:22:21 -0500From: hrubin@b.stat.purdue.edu (Herman Rubin)Message-ID: &LT;77t9ot$15ha@b.stat.purdue.edu>References: <A HREF = "#99Jan15.151547edt.785@neuron.ai.toronto.edu">&LT;99Jan15.151547edt.785@neuron.ai.toronto.edu></A>Newsgroups: sci.math,sci.math.num-analysis,sci.stat.mathLines: 49In article &LT;99Jan15.151547edt.785@neuron.ai.toronto.edu>,Radford Neal &LT;radford@cs.toronto.edu> wrote:>>George Marsaglia &LT;geo@stat.fsu.edu> writes:>>> #define LFIB4 (t[c]=t[c]+t[c+58]+t[c+119]+t[c+178],t[++c])>>> #define SWB   (t[c+237]=(x=t[c+15])-(y=t[c]+(x&LT;y)),t[++c])>In article &LT;790f49x60.fsf@poole.statgen.ncsu.edu>,>Dmitri Zaykin &LT;zaykin@statgen.ncsu.edu> wrote:>>Shouldn't these be>>#define LFIB4 (t[c]=t[c]+t[c+58]+t[c+119]+t[c+179], ++c)>>#define SWB   (t[c+237]=(x=t[c+15])-(y=t[c+1]+(x&LT;y)), ++c)>This doesn't work either.  I believe that it is undefined whether the>comparison x&LT;y uses the new or the old value of x.  The SHR3 macro>in the original source also suffers from this flaw.>I think one needs to face up to an unpleasant truth:  The #define >facility of C was poorly designed, and is incapable in general of>supporting the definition of "in-line" procedures.  It is far better>to simply write ordinary C procedures, and accept the fairly small>procedure call overhead.I think it should be clarified, and probably written out in somemore detail.  But the procedure call overhead would be comparableto the computing cost; C, and all other languages, have such greatbuilt-in inefficiencies that what is needed is something writtenfrom the standpoint of mathematics and efficiency.  But even the use of a comparison is a costly operation, if theresult is to be used promptly.  Any form of random, pseudo-random,or quasi-random numbers should be done in good integer form, not present now on many machines because of bad design coming from bad languages which have thrown out the natural propertiesof computers, and attempts to keep stupid people from makingmistakes.  An idiot-proof language is only for idiots.-- This address is for information only.  I do not claim that these viewsare those of the Statistics Department or of Purdue University.Herman Rubin, Dept. of Statistics, Purdue Univ., West Lafayette IN47907-1399hrubin@stat.purdue.edu         Phone: (765)494-6054   FAX: (765)494-0558<HR><A NAME = "36a23371.10418803@newshost.uwo.ca"></A>Subject: Re: Random numbers for C: Improvements.Date: Sun, 17 Jan 1999 19:10:01 GMTFrom: dmurdoch@pair.com (Duncan Murdoch)Message-ID: &LT;36a23371.10418803@newshost.uwo.ca>References: <A HREF = "#77t9ot$15ha@b.stat.purdue.edu">&LT;77t9ot$15ha@b.stat.purdue.edu></A>Newsgroups: sci.stat.mathLines: 27On 17 Jan 1999 13:22:21 -0500, hrubin@b.stat.purdue.edu (Herman Rubin)wrote:>  But the procedure call overhead would be comparable>to the computing cost; I don't know if that's true or not, but I don't think it is reallysomething to worry about.  The uniform value coming out of thesemacros is unlikely to be the end of the computation; you'll almostcertainly do far more costly things with it after it's generated.  Sohalving or doubling the speed of the generator won't have nearly somuch impact on the overall calculation.On the other hand, if it's programmed in a way that is sometimesincorrect in hard to detect ways, it might invalidate the wholecalculation.  That seems like a much higher cost to pay.>An idiot-proof language is only for idiots.No, if such a thing existed, it would also reduce the occasionallapses of non-idiots.  Programmers are fallible; if tools can preventsome common errors (even if it means doubling the computation time),then those tools are worth using.I'd rather not be the first one to finish, if my answer is wrong!Duncan Murdoch<HR><A NAME = "77veih$11ts@b.stat.purdue.edu"></A>Subject: Re: Random numbers for C: Improvements.Date: 18 Jan 1999 08:56:33 -0500From: hrubin@b.stat.purdue.edu (Herman Rubin)Message-ID: &LT;77veih$11ts@b.stat.purdue.edu>References: <A HREF = "#36a23371.10418803@newshost.uwo.ca">&LT;36a23371.10418803@newshost.uwo.ca></A>Newsgroups: sci.stat.mathLines: 63In article &LT;36a23371.10418803@newshost.uwo.ca>,Duncan Murdoch &LT;dmurdoch@pair.com> wrote:>On 17 Jan 1999 13:22:21 -0500, hrubin@b.stat.purdue.edu (Herman Rubin)>wrote:>>  But the procedure call overhead would be comparable>>to the computing cost; >I don't know if that's true or not, but I don't think it is really>something to worry about.  The uniform value coming out of these>macros is unlikely to be the end of the computation; you'll almost>certainly do far more costly things with it after it's generated.  So>halving or doubling the speed of the generator won't have nearly so>much impact on the overall calculation.It certainly is.  The cost of one procedure call could far exceedthe cost of a uniform, or even many nonuniform, random variables.If procedure calls have to be made in the generation, I would notbe surprised to have a factor of 10 or more.  BTW, I would notuse any pseudo-random procedure in a

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区四区高清精品免费观看 | 国产日韩三级在线| 91麻豆精品国产91久久久久久 | 麻豆成人免费电影| 91在线视频在线| 精品美女一区二区三区| 亚洲国产成人高清精品| 成人精品在线视频观看| 精品91自产拍在线观看一区| 一区二区三区在线视频免费| 国产一区二区三区电影在线观看| 欧美日韩一本到| 中文字幕亚洲一区二区va在线| 青青草成人在线观看| 欧美在线看片a免费观看| 欧美激情一区二区三区在线| 日韩高清不卡一区| 欧美日韩小视频| 一区二区三区高清不卡| 99久久精品99国产精品| 欧美国产日韩一二三区| 国产成人亚洲综合a∨婷婷| 日韩欧美综合在线| 蜜臀久久久久久久| 欧美日韩免费视频| 亚洲成人1区2区| 欧美视频在线一区二区三区| 亚洲男同性恋视频| 在线观看一区二区精品视频| 亚洲男帅同性gay1069| 91在线视频播放| 日韩一区有码在线| 色综合色综合色综合色综合色综合| 中文字幕不卡在线播放| 高清不卡一区二区在线| 欧美激情综合在线| 波波电影院一区二区三区| 中文字幕亚洲区| 91麻豆免费观看| 一区二区三区四区蜜桃| 欧美日韩国产综合久久| 免费在线观看视频一区| 精品久久人人做人人爰| 国产精品一区二区久久不卡| 久久久综合视频| www.视频一区| 亚洲午夜久久久久久久久电影院 | 成人精品gif动图一区| 一区在线中文字幕| 在线观看视频一区| 日韩电影网1区2区| 久久久91精品国产一区二区精品| 国产成人在线视频网址| 亚洲欧美日韩国产手机在线| 欧美无乱码久久久免费午夜一区| 日韩中文字幕区一区有砖一区 | 一本大道av伊人久久综合| 亚洲一区二区三区激情| 日韩欧美亚洲国产另类| gogogo免费视频观看亚洲一| 亚洲一区二区三区免费视频| 精品88久久久久88久久久| 91在线国产福利| 蜜桃视频免费观看一区| 国产精品人人做人人爽人人添| 91国产精品成人| 国产一区二区不卡| 亚洲一区二区偷拍精品| www日韩大片| 欧美性生交片4| 国产一区亚洲一区| 洋洋成人永久网站入口| 久久你懂得1024| 色婷婷综合激情| 国产精品99久久久久久宅男| 亚洲最快最全在线视频| 久久久影视传媒| 欧美日韩国产另类一区| 成人小视频免费在线观看| 日韩电影在线一区二区三区| 亚洲欧洲精品一区二区三区不卡| 日韩免费高清av| 欧美日韩一区二区三区高清| 成人国产在线观看| 极品美女销魂一区二区三区| 亚洲永久精品大片| 国产精品国产自产拍高清av王其| 91精品国产91热久久久做人人| 99精品1区2区| 国产精品18久久久久久vr| 日韩av中文字幕一区二区三区| 亚洲欧洲av在线| 国产欧美一区二区精品婷婷 | 欧美影院精品一区| 成人ar影院免费观看视频| 韩国av一区二区三区| 日日夜夜一区二区| 亚洲国产一区在线观看| 亚洲欧美在线高清| 国产精品伦一区| 国产女主播一区| 久久亚洲免费视频| 精品国产91久久久久久久妲己| 欧美日韩精品一区二区在线播放| 色婷婷av一区| 色老汉一区二区三区| 国产成人精品免费| 国产成人鲁色资源国产91色综| 久久国产视频网| 美女视频网站久久| 麻豆久久久久久| 日本成人在线网站| 日韩av一区二区三区四区| 亚洲高清免费视频| 午夜精品一区在线观看| 日韩国产欧美在线播放| 日韩精品一级中文字幕精品视频免费观看| 亚洲一区二区在线视频| 亚洲在线成人精品| 丝瓜av网站精品一区二区 | 日韩一区二区三区视频| 日韩视频国产视频| 欧美大片一区二区| 久久久精品天堂| 中文字幕在线不卡视频| 亚洲欧美日韩一区| 天堂成人免费av电影一区| 日韩av一区二| 国产成人精品免费| 91丨九色丨黑人外教| 欧美午夜电影网| 日韩手机在线导航| 国产欧美中文在线| 亚洲码国产岛国毛片在线| 亚洲一区二区三区中文字幕| 午夜久久久久久| 国产一区在线精品| 97久久超碰国产精品| 欧美日韩亚洲国产综合| 精品国产乱码久久久久久免费| 欧美激情中文字幕| 亚洲成av人片在www色猫咪| 轻轻草成人在线| 国产99久久精品| 欧美在线你懂的| 久久精品无码一区二区三区| 亚洲日本在线观看| 久久国产尿小便嘘嘘尿| 北岛玲一区二区三区四区| 欧美日韩不卡一区二区| 久久婷婷色综合| 一级中文字幕一区二区| 精品中文av资源站在线观看| caoporm超碰国产精品| 欧美高清激情brazzers| 国产精品天天看| 日韩不卡一区二区三区| 一本色道综合亚洲| 337p日本欧洲亚洲大胆精品| 一区二区三区日韩精品视频| 国产又黄又大久久| 精品视频一区二区三区免费| 欧美国产日韩一二三区| 日韩精品一卡二卡三卡四卡无卡| 成人免费高清在线观看| 日韩一区二区中文字幕| 一区二区三区不卡在线观看| 国产一区二区精品久久99| 欧美人与禽zozo性伦| 国产精品高潮久久久久无| 狠狠色丁香九九婷婷综合五月| 在线免费观看日韩欧美| 中文字幕不卡三区| 国产中文字幕精品| 在线电影国产精品| 亚洲一区二区三区四区不卡| 成人妖精视频yjsp地址| 26uuu国产日韩综合| 日韩高清一级片| 88在线观看91蜜桃国自产| 亚洲伦理在线免费看| 成人黄色网址在线观看| 日本一区二区三区在线观看| 久草中文综合在线| 欧美一区二区三区四区在线观看| 亚洲综合成人在线| 色婷婷久久久亚洲一区二区三区| 欧美国产国产综合| 国产成人综合在线观看| 国产欧美一区二区精品性| 国产伦精一区二区三区| 26uuu欧美| 国产精品一区二区在线观看不卡| 欧美岛国在线观看| 韩国一区二区在线观看| 精品成人免费观看| 国产永久精品大片wwwapp | 久久久精品国产免大香伊| 免费视频一区二区| 日韩一区二区三区电影在线观看 |