登录
首页 » matlab » Mersenne-Twister

Mersenne-Twister

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

  • MATLABgui
    matlab gui设计教程,可满足用户学习matlab gui时 的一般要求(matlab gui tutorial Designed to meet the user matlab gui when studying the general requirements)
    2009-03-18 09:55:44下载
    积分:1
  • paper27
    Dynamics of the Titan four-wheel drive mobile robot with floating Ackerman steering
    2015-01-11 01:38:32下载
    积分:1
  • hmok3
    MATLLABE编程,STPHEN J.CHAPMAN著,MATLLABE中文站首发,(MATLLABE programming, STPHEN J. CHAPMAN forward, MATLLABE Chinese station first,)
    2008-02-19 17:35:42下载
    积分:1
  • Topology-Of-WSN
    无线传感器Topology Of WSN定位算法matlab代码(Wireless sensor Topology Of the WSN localization algorithm matlab code)
    2013-04-28 15:02:23下载
    积分:1
  • dtsspMatlabAll
    This is transfer function for matlab.
    2009-03-19 05:06:37下载
    积分:1
  • Matlab-Course
    说明:  Matlab教程,包括Matlab符号与数值运算、Matlab绘图、Matlab程序设计及其工程运用等内容(Matlab tutorials, including Matlab symbolic and numerical computation, Matlab graphics, Matlab programming and engineering application, etc.)
    2011-02-22 00:20:35下载
    积分:1
  • FracLab2.04
    分形分析工具箱,业内最完整,最易用的分形分析工具箱,包含GUI,Demos以及详细的帮助文档。(Fractal analysis toolbox, the industry' s most complete, most use fractal analysis toolbox contains GUI, Demos, and a detailed help documentation.)
    2013-01-06 00:01:49下载
    积分:1
  • car-following
    Modified coupled map car-following model and its delayed feedback control scheme
    2013-10-01 04:17:01下载
    积分:1
  • cyclo-converter
    Psim cycloconverter simulation
    2015-02-17 18:20:20下载
    积分:1
  • costFinal
    FUNCTION FOR COSTFINAL USED IN PSO
    2012-02-09 22:13:52下载
    积分:1
  • 696518资源总数
  • 106148会员总数
  • 10今日下载