登录
首页 » matlab » Mersenne-Twister

Mersenne-Twister

于 2012-07-22 发布 文件大小:565KB
0 177
下载积分: 1 下载次数: 55

代码说明:

  利用Mersenne Twister算法产生随机数,并测试和分析了其随机性。 程序中还加入了界面显示。 各个文件为: initGenerator.m: initGenerator函数,用于初始化随机序列的长度和值 generateNum.m: generateNum函数,当index为0时被调用,用于创建624维的移位寄存器数组 extractNum.m: extractNum函数,根据index当前值选择数组中的数生成随机数,同时改变index的值。 main.m: main主函数,输入种子seed和产生数目total,输出产生结果及随机性测试结果 mymy.m和mymy.fig: 用于界面显示的部分,这两个文件会通过界面传入seed和total的值,并调用main函数,在相应的框中显示输出结果。 (According to the algorithm principle on Wikipedia, the Mersenne Twister algorithm to generate random numbers, and test and analysis of its randomness. The program has also joined the interface display. The individual files are: initGenerator.m: initGenerator function used to initialize the random sequence length and value generateNum.m: generateNum function is invoked when the index is zero, and used to create a 624-dimensional shift register array extractNum.m: extractNum function, according to index the current value to select the number to generate random numbers, and change the value of the index in the array. main.m: main function of the input seed to seed and produce the number of total, the output generated results and the randomness of the test results mymy.m and mymy.fig: Part of these two files for interface display interface incoming seed and the total value of, and calls the main function, to display the output in the appropriate boxes.)

文件列表:

Mersenne Twister
................\2009211125_09210682_19_李俊.docx,605533,2012-06-16
................\Mersenne Twister
................\................\extractNum.m,347,2012-06-15
................\................\generateNum.m,457,2012-06-15
................\................\initGenerator.m,245,2012-06-15
................\................\main.m,911,2012-06-16
................\................\mymy.fig,4933,2012-06-16
................\................\mymy.m,9591,2012-06-16
................\官网代码
................\........\mt19937-2 (1).c,4687,2012-06-10
................\........\mt19937-2.c,4687,2012-06-10

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • imagerotation
    DIGITAL IMAGE ROTATION CODE IN MATLAB
    2009-03-18 11:51:42下载
    积分:1
  • d_best_jidai
    实现数字信号最佳基带传输系统的仿真,画出该系统的Eb/N0曲线(To achieve the best base-band digital signal transmission system simulation, draw the system curve Eb/N0)
    2009-04-16 10:51:43下载
    积分:1
  • Turbo
    着重研究Turbo编译码技术及其在均衡中的应用,以及在频率选择性MIMO信道中Turbo均衡的应用。(Turbo Decoding focuses on technology and its application in equilibrium, and the application of frequency-selective MIMO channel equalization in Turbo.)
    2014-11-23 09:07:39下载
    积分:1
  • FCSmodel(book)
    燃料电池的simulink模型,该燃料电池的原型为Ballard Mark-700,75kw(fuel cell simulink model )
    2021-02-21 21:19:42下载
    积分:1
  • radar_rtools
    日本人做的一个雷达系统仿真的matlab的toolbox,里面包含了绝大多数雷达信号的模拟,可以用与仿真,如果 要用到硬件设计则不太好使(Japanese do a radar system simulation Matlab toolbox. it contains the majority of the radar signal simulation, and simulation can be used, if we had to use the hardware design is not good enough so)
    2020-09-06 12:48:13下载
    积分:1
  • fuzzysketch
    Fuzzy Extractor Sketch
    2014-01-08 05:18:00下载
    积分:1
  • HoughObject
    Circles We can extend the Hough transform to other shapes that can be expressed parametrically. For example, a circle of fixed radius can be described fully by the location of its center (x, y). Think of each feature (edge) point on the circle as saying, ”if I’m on the circle, the center must be in one of these places”. It turns out that the locus of these votes is itself a circle. But what about circles of unknown size? In this case, we need a third parameter: the radius of the circle. So, we can parameterize circles of arbitrary size by (x, y, r). Instead of casting votes in a circular pattern into a two-dimensional accumulator, we cast votes in circles of successively larger size in a three-dimensional accumulator.
    2010-03-09 06:46:32下载
    积分:1
  • cifafengxi
    程序中先判断这个句语句中每个单元为关键字、常数、运算符、界符,对与不同的单词符号给出不同编码形式的编码,用以区分之。(proceedings of the first judgment of sentence statement, the keyword for each of the modules, constant, Operators, the industry website. pairs with different words are given different symbols coding forms of coding to differentiate.)
    2007-04-29 19:09:28下载
    积分:1
  • LPG
    使用matlab来设计长周期光栅的代码,使用耦合模理论方法。(Matlab to design a long-period grating code, using the coupled mode theory.)
    2012-08-24 12:29:34下载
    积分:1
  • changebenyue
    基于matlab gui的程序设计,模仿嫦娥一号的探月运动(matlab changeyihao)
    2011-12-04 20:37:07下载
    积分:1
  • 696518资源总数
  • 106148会员总数
  • 10今日下载