登录
首页 » matlab » Mersenne-Twister

Mersenne-Twister

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

  • diqiuyi
    绘制一个地球仪,挺有趣的,程序简单易懂,主要是里面的数据听宝贵。wrldmatr.mat wrldcmap.mat diqiuyi.m(Draw a globe, very interesting, the program easy to understand, which is mainly to listen to valuable data. wrldmatr.mat wrldcmap.mat diqiuyi.m)
    2011-11-08 16:01:28下载
    积分:1
  • three_phase_bridge
    三相桥式整流电路,可以直接用,matlab编写(Three-phase bridge rectifier circuit can be directly used, matlab prepared)
    2013-05-11 08:36:46下载
    积分:1
  • fuifai_v79
    最大似然(ML)准则和最大后验概率(MAP)准则,毕设内容,高光谱图像基本处理,现代信号处理中谱估计在matlab中的使用。( Maximum Likelihood (ML) criteria and maximum a posteriori (MAP) criterion, Complete set content, basic hyperspectral image processing, Modern signal processing used in the spectral estimation in matlab.)
    2016-12-31 11:23:43下载
    积分:1
  • NSGA-II
    说明:  用遗传算法(NSGA-II)解决车间调度问题,含案例(solving job shop scheduling problem using NSGA-II)
    2020-07-20 16:06:48下载
    积分:1
  • Introduction-to-four-classic-articles-OFDM
    Introduction to four classic articles OFDM
    2011-01-13 10:57:56下载
    积分:1
  • MMEKF
    使用IMM—EKF实现单目标跟踪,包括量测生成,扩展卡尔曼滤波,IMM算法(single target tracking)
    2021-01-07 11:38:53下载
    积分:1
  • createColorHistograms
    create Color Histograms
    2010-11-16 21:31:37下载
    积分:1
  • guided-filter-code
    本文提出了一种滤波源码来简化图像抠图中的一个大型稀疏矩阵算法,从而优化了算法,提高了效率。(This paper presents a filter in the source code to simplify the image matting, a large sparse matrix algorithm, to optimize the algorithm and improve efficiency.)
    2010-11-18 11:23:25下载
    积分:1
  • Spread-spectrum-communication
    MATLAB实现扩频通信系统仿真,实现m序列生成,发射端发射信号,接受端接受信号(MATLAB realization of spread spectrum communication system simulation, realization m sequence generation, transmission side transmits the signal, the receiving end receives signals)
    2015-03-19 22:56:20下载
    积分:1
  • FIRfilterFD
    有限冲激响应滤波器的频域实现方法。可以通过快速傅里叶变换降低复杂度。(Finite Impulse Response Filter frequency domain method. Can reduce the complexity of the fast Fourier transform.)
    2012-08-08 15:09:31下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 42今日下载