登录
首页 » matlab » Mersenne-Twister

Mersenne-Twister

于 2012-07-22 发布 文件大小:565KB
0 202
下载积分: 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 个回复

  • GeneralExpectationMaximization
    expectation maximization algorithm
    2009-05-15 20:40:06下载
    积分:1
  • evtchn
    Driver for receiving and demuxing event-channel signals.
    2014-08-18 16:34:44下载
    积分:1
  • correlation-dimension-
    Calculate the correlation dimension of the matlab program.
    2014-10-16 20:48:22下载
    积分:1
  • GAC_IJCV1997
    该文章是边缘活动轮廓模型之测地活动轮廓模型的始祖性文章,来自顶级计算机视觉领域期刊IJCV,是学习活动轮廓模型之GAC模型的最佳选择(a best paper for GAC model )
    2014-12-06 20:45:28下载
    积分:1
  • e2
    说明:  Any change to the value of Mresults in immediate and phase-continuous changes in the output frequency
    2014-02-23 02:42:47下载
    积分:1
  • OSGA
    第二种联合稀疏模型重构算法,用于分布式压缩感知(recovery algorithm of JSM2)
    2012-12-20 21:44:06下载
    积分:1
  • ARIMA--AIC
    改进aic准则ARIMA模型,通过调整误差来寻找p和q(ARIMA model)
    2014-06-04 19:20:26下载
    积分:1
  • MatlabManual
    matlab manual MATLAB is an interactive system for doing numerical computations. MATLAB makes use of highly respected algorithms and hence you can be confident about your results
    2009-10-04 14:07:19下载
    积分:1
  • YangShiGanShe
    说明:  光学中杨氏双缝干涉仿真程序。可以是准单色光和单色光。(optics Young's double slit interference simulation program. It was a quasi-monochromatic light and monochromatic light.)
    2005-11-15 15:35:34下载
    积分:1
  • 04408441
    研究脑电的经典文章,国外大牛写的,值得推荐,研究脑电信号处理的方法(EEG studies classic article, written by Daniel abroad, it is recommended to study the EEG signal processing methods)
    2013-08-11 10:58:02下载
    积分:1
  • 696516资源总数
  • 106627会员总数
  • 16今日下载