登录
首页 » matlab » Mersenne-Twister

Mersenne-Twister

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

  • fr
    说明:  FR共轭梯度算法求极小值。y为给定函数,x为函数变量,x0为搜索起始点 返回值fm为极小值,xm为极小值点(FR conjugate gradient algorithm for the minimum. y for a given function, x as a function of variables, x0 the starting point for the search to return to the value of fm for the minimum, xm for the minimum point)
    2008-12-23 21:25:19下载
    积分:1
  • AGuideToTheFFT
    FFt例程,具有Pdf文档的具体说明过程。不错的啊!(FFt routines, Pdf file with the specified process. Good ah!)
    2006-07-25 09:34:47下载
    积分:1
  • BaiNop_NDVaPTM
    Day la 1 chuong trinh duoc viet boi hoc vien cao hoc khoa 20 cua truong Khoa hoc tu nhien. Vi thoi gian co han nen chua test duoc
    2012-05-09 00:44:15下载
    积分:1
  • fuzzy
    Matalb 实现了模糊控制,包括模糊控制器的设计(Matalb implementation of fuzzy control including fuzzy controller design)
    2010-06-04 10:44:48下载
    积分:1
  • xiayu
    下雨的falsh源码,简单高效的程序。一学就会。(Rain falsh source, simple and efficient procedure.)
    2014-08-06 21:22:09下载
    积分:1
  • gmodule-os2
    GMODULE - GLIB wrapper code for dynamic module loading.
    2013-05-20 12:54:09下载
    积分:1
  • matlabshuzhifenxi
    matlab的数值分析的程序实现,,又需要的拿啊,,,(matlab numerical analysis of the implementation of procedures, and take the necessary ah,,,)
    2009-04-06 10:41:57下载
    积分:1
  • am
    说明:  am modulation in matlab
    2009-07-10 16:00:15下载
    积分:1
  • baset
    说明:  matlab仿真延迟相乘法估计调制信号符号速率(matlab simulation multiplication delayed modulation signal symbol rate is estimated)
    2008-11-15 10:43:52下载
    积分:1
  • Basic-commands
    Basic matlab commands
    2013-01-07 17:06:15下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载