登录
首页 » matlab » Mersenne-Twister

Mersenne-Twister

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

  • SMATLABFFFTp
    MATLAB频谱分析源代码,自己写的,配合原始数数据文件,超级详细 ,经测试可直接使用。 (MATLAB spectrum analysis of the source code, write your own, with the original number of data files, super detail, has been tested and can be used directly.)
    2012-07-23 11:38:00下载
    积分:1
  • bptest
    该算法为基于克隆选择原理的人工免疫算法。算法有三部分,第一部分为传统的遗传算法,第二部分CSA算法,两方法对一些函数求极值,可比较各自的特点。(The algorithm is based on the principle of artificial immune clonal selection algorithm. Algorithm has three parts, the first part of the traditional genetic algorithm, the second part of the CSA algorithm, two methods for some function extreme, can compare their characteristics.)
    2014-01-09 22:49:26下载
    积分:1
  • second-degree-resolution
    Differential equations are mathematically studied from several different perspectives, mostly concerned with their solutions —the set of functions that satisfy the equation.
    2013-12-08 18:22:48下载
    积分:1
  • buckPI
    基于MATLAB的BUCK电路的仿真,内环是电流环,用无源控制,外环电压环,用PI控制(Based on the passive control of MATLABBUCK circuit)
    2020-11-24 15:29:33下载
    积分:1
  • MY_QPSK
    Another QPSK MODEM simulation
    2009-06-19 07:50:20下载
    积分:1
  • Sonhiz
    this program include successfull matlab code
    2011-04-29 20:55:41下载
    积分:1
  • lab1
    Lab1 sur le filtrage pour la commande prédictive
    2013-01-24 04:02:35下载
    积分:1
  • 43_4GLTE_MATLAB_1097131
    matlab describtion of lte phyisical layer
    2013-01-28 23:23:16下载
    积分:1
  • Estimation--Control--and-the--Discrete-Kalman-Fil
    Estimation, Control, and the Discrete Kalman Filter By:Donald E. Catlin
    2016-01-03 19:24:12下载
    积分:1
  • 71348358pso
    说明:  离散粒子群算法,改进的二值粒子群算法,可以正常运行(Discrete particle swarm optimization algorithm, improved binary particle swarm optimization algorithm)
    2020-07-25 19:53:49下载
    积分:1
  • 696524资源总数
  • 103978会员总数
  • 64今日下载