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

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

?? rand.html

?? 關于LDPC編/譯碼的方針平臺。能隨機產生信源和模擬高斯信道。
?? HTML
字號:
<HTML><HEAD><TITLE> Random Variate Generation Routines </TITLE></HEAD><BODY><H1> Random Variate Generation Routines </H1><P>This module provides facilities for basic pseudo-random number generation,and for generation of random variates from various common distributions.<P>All the random generation procedures use the same underlying"stream" of random numbers.  This stream is generated using the<TT>nrand48</TT> pseudo-random generation procedure found on most Unixsystems, with the output being combined with a limited supply of realrandom numbers from the file "randfile" in the sourcedirectory for this software, in order to reduce the chances that thepseudo-random numbers aren't random enough.<P>A pseudo-random number stream is determined by an integer<I>seed</I>, which is typically set by the user for each experimentalrun (eg, to 1, 2, 3, etc. for successive runs).  The state of therandom number stream can be saved in a structure of type<TT>rand_state</TT>, and later restored.  For example, the state couldbe saved in a file at the end of a run, and restored if it is laterdecided that the run should be continued for longer.<P>The methods for generating random variates from various distributionsare mostly taken from the following reference:<BLOCKQUOTE>   Devroye, L. (1986) <I>Non-Uniform Random Variate Generation</I>,   New York: Springer-Verlag.</BLOCKQUOTE>The methods used here are not necessarily the fastest available.  They wereselected to be reasonably fast while also being easy to write.<P><B>Header file required</B>: <TT>rand.h</TT><A NAME="get-set-sec"><P><HR><CENTER><BIG>Setting and saving the state</BIG></CENTER></A><A NAME="seed"><HR><B>rand_seed</B>: Set the state from an integer seed.</A><BLOCKQUOTE><PRE>void rand_seed( int seed;  /* Seed to set state based on */)</PRE></BLOCKQUOTE>  <P>Sets the random number generator to a state that is determined fromthe integer <TT>seed</TT>.  Setting the seed the same on two occasions,and then calling exactly the same sequence of random generationprocedures, should produce exactly the same sequence of randomvariates.  (Note: this may not be true, however, if computers withdifferent architectures are used on the two occasions.)<P>Sequential seeds should produce streams that are pretty muchindependent (unlike the situation for some pseudo-random numbergenerators).  Setting the seed randomly according to the time or day,or some such, without recording what it was, is <B>not</B>recommended, since the results are then not reproducible.<P><A NAME="get_state"><HR><B>rand_get_state</B>: Get a pointer to the current state.</A><BLOCKQUOTE><PRE>rand_state *rand_get_state (void)</PRE></BLOCKQUOTE>Returns a pointer to the current state of the random number generator,which is a structure of type <TT>rand_state</TT>.  The only use for thispointer is to use it to save a copy of the current state someplace.<P><A NAME="use_state"><HR><B>rand_use_state</B>: Set the state to use from now on.</A><BLOCKQUOTE><PRE>void rand_use_state ( rand_state *state  /* Pointer to a previously saved state */)</PRE></BLOCKQUOTE>Sets the random number generator to the state pointed to by the argument.This state must be valid.  The only way to get a valid state is by using<TT>rand_get_state</TT>.<A NAME="uniform-sec"><P><HR><CENTER><BIG>Generating uniform random variates</BIG></CENTER></A><A NAME="uniform"><HR><B>rand_uniform</B>: Generate uniformly from [0,1).</A><BLOCKQUOTE><PRE>double rand_uniform (void)</PRE></BLOCKQUOTE>Returns a random number that is uniformly distributed between 0 and 1,with a value of exactly 0 being possible, but with a value of exactly 1not being possible.<P><A NAME="uniopen"><HR><B>rand_uniopen</B>: Generate uniformly from (0,1).</A><BLOCKQUOTE><PRE>double rand_uniopen (void)</PRE></BLOCKQUOTE>Returns a random number that is uniformly distributed between 0 and 1,with neither a value of exactly 0 nor a value of exactly 1being possible.<A NAME="discrete-sec"><P><HR><CENTER><BIG>Generating discrete random variates</BIG></CENTER></A><A NAME="int"><HR><B>rand_int</B>: Pick an integer uniformly from <I>0</I> to <I>n-1</I>.</A><BLOCKQUOTE><PRE>int rand_int ( int n  /* Number of integers (from 0) to pick from */)</PRE></BLOCKQUOTE><P>Randomly picks an integer from the set { <TT>0, 1, ..., n-1</TT> },with each integer being equally probable.  The probabilities maybecome somewhat unequal, however, if <TT>n</TT> is very large,approaching 2<SUP><SMALL>31</SMALL></SUP>.<P><A NAME="pickd"><HR><B>rand_pickd</B>: Pick an integer from <I>0</I>to <I>n-1</I> with given probabilities (as doubles).</A><BLOCKQUOTE><PRE>int rand_pickd( double *p,  /* Array of probabilities, of length n */  int n       /* Number of integers (from 0) to pick from */)</PRE></BLOCKQUOTE><P>Randomly picks an integer from the set { <TT>0, 1, ..., n-1</TT> },with probabilities given by the array of double-precision numberspassed as the first argument.  These numbers need not sum to one, but theymust be non-negative, and must not all be zero.  The actualprobabilities used are obtained by dividing each number in this arrayby the sum of all the numbers.  <P>If one of the probabilities is exactly zero, it is guaranteed thatthe corresponding integer will not be picked.<P><A NAME="pickf"><HR><B>rand_pickf</B>: Pick an integer from <I>0</I>to <I>n-1</I> with given probabilities (as floats).</A><BLOCKQUOTE><PRE>int rand_pickf( float *p,  /* Array of probabilities, of length n */  int n      /* Number of integers (from 0) to pick from */)</PRE></BLOCKQUOTE><P>This procedure is the same as <A HREF="#pickd"><TT>rand_pickd</TT></A>except that the array giving the probabilities is an array of single-precisionfloating point numbers, rather than double-precision.<A NAME="continuous-sec"><P><HR><CENTER><BIG>Generating continuous random variates</BIG></CENTER></A><A NAME="gaussian"><HR><B>rand_gaussian</B>: Generate a standard Gaussian (normal) random variate.</A><BLOCKQUOTE><PRE>double rand_gaussian (void)</PRE></BLOCKQUOTE><P>Generates a random value drawn from the Gaussian (normal) distributionwith mean zero and standard deviation one, whose density function is proportional to exp(-<I>x<SUP><SMALL>2</SMALL></SUP></I>/2), with <I>x</I>being any real value.<A NAME="logistic"><HR><B>rand_logistic</B>: Generate a logistic random variate.</A><BLOCKQUOTE><PRE>double rand_logistic (void)</PRE></BLOCKQUOTE><P>Generates a random value drawn from the logistic distribution withlocation parameter zero and width parameter one, whose densityfunction is proportional to exp(-<I>x</I>) / [1 + exp(-<I>x</I>)]<SUP><SMALL>2</SMALL></SUP>, with <I>x</I> being any real value.<P><A NAME="cauchy"><HR><B>rand_cauchy</B>:Generate a Cauchy random variate.</A><BLOCKQUOTE><PRE>double rand_cauchy (void)</PRE></BLOCKQUOTE><P>Generates a random value drawn from the Cauchy distribution with centreat zero and width one, whose density function is proportional to 1 / (1+<I>x<SUP><SMALL>2</SMALL></SUP></I>), with <I>x</I> being any real value.<P><A NAME="gamma"><HR><B>rand_gamma</B>:Generate a gamma-distributed random variate.</A><BLOCKQUOTE><PRE>double rand_gamma( double A   /* Shape parameter */)</PRE></BLOCKQUOTE><P>Generates a random value drawn from the gamma distribution withpositive shape parameter <I>A</I>, whose density function is proportionalto <I>x<SUP><SMALL>A-1</SMALL></SUP></I> exp(-<I>x</I>), with <I>x</I>being any positive real. This procedure will never return a value that isexactly zero.<P><A NAME="exp"><HR><B>rand_exp</B>:Generate an exponentially-distributed random variate.</A><BLOCKQUOTE><PRE>double rand_exponential (void)</PRE></BLOCKQUOTE><P>Generates a random value drawn from the exponential distribution with mean one, whose density function is exp(-<I>x</I>), with <I>x</I> beingany positive real.  This procedure will never return a value that isexactly zero. <P>Note: This is a common special case of the gamma distribution.<P><A NAME="beta"><HR><B>rand_beta</B>:Generate a beta-distributed random variate.</A><BLOCKQUOTE><PRE>double rand_beta( double A,  /* Parameters of distribution */  double B)</PRE></BLOCKQUOTE><P>Generates a random value drawn from the beta distribution with positiveparameters <I>A</I> and <I>B</I>, whose density function is proportionalto <I>x<SUP><SMALL>A-1</SMALL></SUP>(1-x)<SUP><SMALL>B-1</SMALL></SUP></I>,with <I>x</I> being any real in the interval (0,1).  This procedurewill never return a value that is exactly zero or exactly one.<HR><A HREF="index.html">Back to index for LDPC software</A></BODY></HTML>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区三区在线观看视频| 亚洲影视在线观看| 亚洲欧美一区二区不卡| 视频一区二区国产| 99视频有精品| 精品久久久久久久一区二区蜜臀| 成人免费视频在线观看| 麻豆精品蜜桃视频网站| 欧美在线色视频| 中文字幕中文在线不卡住| 日本不卡不码高清免费观看| 色婷婷激情一区二区三区| 国产欧美在线观看一区| 免费观看久久久4p| 在线视频中文字幕一区二区| 国产亚洲精品中文字幕| 日本不卡1234视频| 欧美日产在线观看| 一区二区三区四区亚洲| 成人黄色在线看| 久久九九久久九九| 精品一二三四在线| 91.麻豆视频| 亚洲成在人线在线播放| 北岛玲一区二区三区四区| 久久男人中文字幕资源站| 久久精品国产亚洲a| 制服丝袜中文字幕一区| 香港成人在线视频| 在线欧美小视频| 国产精品福利电影一区二区三区四区| 国产伦精品一区二区三区视频青涩| 日韩午夜小视频| 久久99精品国产麻豆婷婷洗澡| 在线播放中文一区| 奇米影视在线99精品| 日韩午夜中文字幕| 狠狠色狠狠色合久久伊人| 欧美成人女星排行榜| 国产精品自拍在线| 国产欧美1区2区3区| 成人午夜视频福利| 亚洲特黄一级片| 欧美三级资源在线| 午夜激情一区二区三区| 欧美巨大另类极品videosbest | 精品理论电影在线观看| 久久国产尿小便嘘嘘尿| 久久久精品免费免费| 成人综合在线观看| 亚洲私人黄色宅男| 欧美视频中文字幕| 日本免费新一区视频| 久久精品一区二区三区不卡牛牛| 国产激情一区二区三区四区| 国产精品美女视频| 色哟哟欧美精品| 日韩精品乱码免费| 久久久天堂av| 色综合久久中文综合久久牛| 午夜激情一区二区| 2017欧美狠狠色| 91一区一区三区| 日韩精品高清不卡| 国产偷国产偷精品高清尤物 | 日韩国产高清影视| xnxx国产精品| 色噜噜狠狠色综合中国| 日韩av在线播放中文字幕| 久久精品欧美一区二区三区不卡 | 精品国产乱码久久久久久夜甘婷婷| 高潮精品一区videoshd| 一区二区三区四区不卡在线| 日韩午夜在线影院| 一本色道久久综合亚洲91| 青娱乐精品在线视频| 亚洲欧洲日韩av| 欧美精品一区二区在线播放 | 亚洲人妖av一区二区| 欧美日韩午夜在线视频| 国产河南妇女毛片精品久久久| 亚洲主播在线播放| 欧美国产日韩a欧美在线观看| 欧美日本一区二区在线观看| jvid福利写真一区二区三区| 免费的国产精品| 亚洲永久精品大片| 中文字幕色av一区二区三区| 26uuu国产日韩综合| 欧美日本在线观看| 91一区二区三区在线播放| 国产毛片精品国产一区二区三区| 亚洲一级二级在线| 中文字幕一区二区视频| 精品国产乱码91久久久久久网站| 在线亚洲免费视频| 不卡的电影网站| 国产精品亚洲午夜一区二区三区| 免费久久99精品国产| 亚洲午夜av在线| 亚洲人成人一区二区在线观看| xnxx国产精品| 欧美岛国在线观看| 欧美精品一级二级三级| 在线观看成人免费视频| 91原创在线视频| 成人在线视频一区二区| 国产精品一区2区| 国产乱码精品一区二区三区忘忧草| 日本不卡一区二区三区| 日韩中文欧美在线| 性做久久久久久| 午夜精品免费在线| 偷拍亚洲欧洲综合| 午夜国产精品一区| 日韩精品亚洲一区二区三区免费| 香蕉加勒比综合久久| 香蕉成人啪国产精品视频综合网| 亚洲成av人片| 日韩精品免费专区| 蜜桃av一区二区三区电影| 蜜桃av噜噜一区二区三区小说| 毛片av一区二区| 极品美女销魂一区二区三区免费| 韩国午夜理伦三级不卡影院| 免费观看91视频大全| 国内精品久久久久影院薰衣草| 精品伊人久久久久7777人| 国产精选一区二区三区 | 日本中文在线一区| 人人爽香蕉精品| 激情综合色综合久久综合| 精品在线免费观看| 成人国产精品免费观看视频| 99riav久久精品riav| 色婷婷精品久久二区二区蜜臂av | 亚洲黄色免费网站| 亚洲综合免费观看高清完整版 | 国产久卡久卡久卡久卡视频精品| 国产成人亚洲综合色影视| 成人性生交大片免费看视频在线| 99久精品国产| 91精品在线免费观看| 久久嫩草精品久久久精品| 亚洲欧美影音先锋| 日日摸夜夜添夜夜添亚洲女人| 国产一区二区伦理| 91视频一区二区三区| 日韩视频一区在线观看| 中文字幕乱码久久午夜不卡| 一区二区三区在线高清| 日本视频免费一区| 成人免费视频caoporn| 欧美私模裸体表演在线观看| 久久理论电影网| 亚洲精品乱码久久久久久黑人| 日韩在线一二三区| 波多野结衣精品在线| 日韩一区二区高清| 尤物av一区二区| 国产精品99久久不卡二区| 91国产免费观看| 久久久美女艺术照精彩视频福利播放| 亚洲欧美成aⅴ人在线观看| 久久国产乱子精品免费女| 99国产精品久久久久久久久久 | 欧美视频一区二区在线观看| 精品处破学生在线二十三| 亚洲精品免费电影| 国产白丝网站精品污在线入口| 欧美三级中文字幕在线观看| 国产精品久久久久婷婷二区次| 男女性色大片免费观看一区二区| 97精品电影院| 国产欧美中文在线| 狠狠色丁香婷婷综合久久片| 欧美精品777| 一区二区欧美国产| 成人激情av网| 国产三级一区二区| 麻豆精品久久精品色综合| 在线看日韩精品电影| 国产精品不卡在线| 国产自产2019最新不卡| 欧美成人激情免费网| 午夜精品视频一区| 欧美色中文字幕| 亚洲一二三四在线| 91网站在线观看视频| 国产精品午夜久久| 国产aⅴ综合色| 国产欧美日韩精品在线| 国内精品久久久久影院一蜜桃| 日韩情涩欧美日韩视频| 日韩精品一级中文字幕精品视频免费观看 | 蜜臀91精品一区二区三区| 欧美精品三级在线观看| 亚洲国产精品尤物yw在线观看| 91国内精品野花午夜精品| 亚洲男人都懂的|