登录
首页 » matlab » Mersenne-Twister

Mersenne-Twister

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

  • matlabsimulink
    主要讲述如何利用matlab进行建模和仿真,都是一些基础知识,适合初学者(Mainly on how to use matlab for modeling and simulation, are some of the basics for beginners)
    2009-11-21 22:40:54下载
    积分:1
  • signal_gen
    matlab下,使用dspbuilder生成的信号生成模块的源码(Matlab, the use of the signals generated dspbuilder generation module source)
    2007-01-09 08:55:40下载
    积分:1
  • detectVoiced
    高性能的话音激活检测算法,适应性很强,具有较好的实际使用性能,可以获得很好的使用效果。(High-performance voice activity detection algorithm, adaptable, good practical use, you can get good use of effects.)
    2012-12-29 14:07:33下载
    积分:1
  • ls_esprit
    最小二乘算法来实现esprit算法,该代码已经在matlab中运行过绝对可以放心使用(Least squares algorithm to achieve esprit algorithm, the code has been run in matlab absolutely safe to use)
    2011-11-15 09:55:42下载
    积分:1
  • source
    白噪声 –单位冲激信号 –正弦信号 –方波信号 –三角波信号 功率谱(White Noise- unit impulse signal- sinusoidal signal- a square wave signal- triangular wave signal power spectrum)
    2013-10-29 17:47:43下载
    积分:1
  • 2006UncertaintySystems
    使用统计方法进行系统不确定性的分析,包含m函数和Simulink模型(Using Statistics for Uncertainty Analysis in System Models)
    2012-10-27 13:43:53下载
    积分:1
  • ABC-K-means
    基于改进人工蜂群算法的K均值聚类算法-喻金平-郑杰-梅宏标,matlab(K-means clustering algorithm based on improved artificial bee colony algorithm-Yu Jinping-Zheng Jie-Mei Hongbiao, matlab)
    2020-11-26 09:19:31下载
    积分:1
  • Proton_range_extended_electric_vehicle
    range extended electric vehicle range extended electric vehicle range extended electric vehicle range extended electric vehicle
    2010-03-16 14:53:50下载
    积分:1
  • 14.1-2
    说明:  《MATLAB时频分析技术》例题matlab编程实现第十四章14.1-14.2(err)
    2008-09-23 15:33:20下载
    积分:1
  • PSO_Prung
    PSO capacitors placement in distribution system
    2013-04-23 00:17:02下载
    积分:1
  • 696518资源总数
  • 104444会员总数
  • 15今日下载