登录
首页 » matlab » Mersenne-Twister

Mersenne-Twister

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

  • DistancesToFussionCenter
    Distance to fussion centers
    2012-04-10 03:52:40下载
    积分:1
  • MATLAB-SIMULINK
    Matlab/Simulink建模与仿真实例精讲配套源程序(The source code of Matlab/Simulink )
    2012-05-03 13:47:05下载
    积分:1
  • mas_mli
    simulation sous simulink, de la machine asynchrone triphasée avec commande MLI, onduleur triphase et vecteurs complexes de la MAS
    2010-12-10 00:44:50下载
    积分:1
  • leida
    基于matlab的雷达系统设计与仿真文章(Radar system design based on matlab)
    2011-06-12 16:35:19下载
    积分:1
  • GUI-with-Matlab
    GUI with Matlab,including basic graphics, animation, handle graphic objects, creating GUI using Guide(GUI with Matlab)
    2011-12-03 11:32:35下载
    积分:1
  • Adaptive-Filtering-Primer-with-MATLAB---Poularika
    Adaptive Filtering Primer with MATLAB - Poularikas and Ramadan
    2014-02-25 23:05:32下载
    积分:1
  • SimpleXMPPClient_src
    jabber source code c#
    2009-12-28 18:12:38下载
    积分:1
  • matlab_chinese
    说明:  matlab 软件编程学习教程Stephen J. Chapman 著(matlab software programming tutorials to learn of Stephen J. Chapman)
    2009-07-28 20:09:17下载
    积分:1
  • yiweiqiuzuobiaoCSM
    一维球坐标系下辐射传递方程切比雪夫配置点谱方法求解(One-dimensional spherical coordinates radiative transfer equation Chebyshev collocation spectral method for solving)
    2013-07-22 08:51:20下载
    积分:1
  • Gauss-Sedeil
    次程序是用MATLAB语言编写的高斯赛德尔迭代法,可用于求解线性微分方程组。(Second procedure is used MATLAB language high Sisaideer iterative method can be used to solve linear differential equations.)
    2013-11-23 21:16:30下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载