登录
首页 » matlab » Mersenne-Twister

Mersenne-Twister

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

  • cdma_code
    a cdma code for communication
    2010-10-11 12:31:27下载
    积分:1
  • MATLAB_syjc
    说明:  《MATLAB实用教程》用到的部分程序,比较全的。(&quot MATLAB Practical Guide&quot Part of the procedure used to compare the sound.)
    2010-05-04 10:06:55下载
    积分:1
  • PSD
    经典谱分析和改进算法,用于估计信号功率谱和方位,(Classical spectral analysis and improved algorithms for estimating the signal power spectrum and the position,)
    2011-05-04 16:35:14下载
    积分:1
  • Houghwithdetail
    使用matlab进行hough变换,细节原码,并有输出显示(Use of matlab hough transform, detail of the original code, and output display)
    2013-09-21 09:05:45下载
    积分:1
  • ECG-METHOD
    有关心电去噪处理的论文,不错的文章,写的很仔细(Are concerned about the power denoising papers, good article, very carefully written)
    2011-12-21 11:37:01下载
    积分:1
  • ShortestPath
    THis ia a program to find shortest path.it is implemented in matlab
    2015-04-13 00:36:43下载
    积分:1
  • BOOST_HALF_BRIDGE_500W_300Vo
    matlab仿真的boost升压电路,应用于光伏发电逆变并网中。(The boost circuit, boosting circuit is applied to the simulation model of photovoltaic power generation in the.)
    2013-05-25 12:36:55下载
    积分:1
  • 9
    说明:  matlab科学计算继续上传,一共10个章节,由浅入深,几乎包括了绝大部分的科学计算方法以及仿真。本人把部分算法做了优化,更为完善(matlab scientific computing continue to upload, a total 10 chapters, easy-to-digest, almost, including most of the scientific method of calculation and simulation. I have done a part of algorithm optimization, a more perfect)
    2008-12-25 16:31:51下载
    积分:1
  • ARTMAP
    模糊神经网络ARTMAP算法,MATLAB(Fuzzy ARTMAP neural network algorithm, MATLAB)
    2009-10-28 12:13:52下载
    积分:1
  • wavelet
    小波实现图像压缩的程序,matlab仿真,可以下载下来学习一下,简单易懂(Wavelet image compression of small procedures, to share)
    2014-10-09 17:26:17下载
    积分:1
  • 696518资源总数
  • 105873会员总数
  • 12今日下载