登录
首页 » matlab » Mersenne-Twister

Mersenne-Twister

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

  • Hinfcontrol
    robust hinf control
    2009-05-29 09:32:41下载
    积分:1
  • ACOTSP[1].V1.0
    路径规划 路径规划的实例,主要运用蚁群算法,算法简洁明了,不懂的可联系本人(Examples of path planning, the main use of ant colony algorithm, the algorithm of concise, do not know I can contact)
    2009-12-29 09:49:55下载
    积分:1
  • splinesprog
    the code for control points
    2013-03-03 15:00:03下载
    积分:1
  • power_switching_power_supply
    power_switching_power_supply.rar,功率电子领域matlab仿真文件,已经验证过,程序运行正常(power_switching_power_supply.rar,Power electronics field matlab simulation file, has already been verified, the normal operating procedures)
    2013-07-14 12:49:29下载
    积分:1
  • liziqun
    粒子群优化是一种新兴的基于群体智能的启发式全局搜索算法,粒子群优化算法通过粒子间的竞争和协作以实现在复杂搜索空间中寻找全局最优点。(Particle swarm optimization is a new global search heuristic algorithm based on swarm intelligence, particle swarm optimization algorithm by particle competition and collaboration to achieve to find the global optimum in a complex search space.)
    2015-02-03 16:56:53下载
    积分:1
  • BEM_SIMPLE
    计算电磁学,本程序用边界元方法求解正方形柱体内电位分布(A simple code for boundary element method.)
    2010-03-10 11:12:40下载
    积分:1
  • TS36942PathlossModel
    说明:  3GPP LTE中TS36942路径损耗模型的源程序代码(TS36942 3GPP LTE path loss model in the source code)
    2011-03-14 22:37:44下载
    积分:1
  • Image-Denoising
    This matlab code for removal of noise from images of rgb and grey type.
    2013-03-06 22:10:27下载
    积分:1
  • K2
    说明:  用K2算法解决问题,包含程序和说明,是学习的好材料(K2 algorithm used to solve the problem, including the procedures and instructions, is good material for learning)
    2010-12-24 16:39:43下载
    积分:1
  • 1
    说明:  直扩系统,适合学生毕业设计,结构简单,使用方便(DS system, suitable for graduate students to design, simple structure, easy to use)
    2011-04-19 10:44:31下载
    积分:1
  • 696518资源总数
  • 104349会员总数
  • 32今日下载