登录
首页 » matlab » Mersenne-Twister

Mersenne-Twister

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

  • PF
    说明:  This code is used for trajectory tracking using PF.
    2014-10-01 15:23:33下载
    积分:1
  • process-parameters
    通过matlab编程对无心磨削工艺参数的进行优化计算。(Through matlab programming for centerless grinding process parameters to optimize the calculation.)
    2011-10-20 21:51:17下载
    积分:1
  • SIFT-matlab
    SIFT算子的matlab程序,有需要的朋友可以下载下来看看(SIFT algorithm matlab program, a friend in need can be downloaded to see)
    2015-04-01 19:05:01下载
    积分:1
  • xi5
    阻尼递推最小二乘法,用于系统辨识,效果良好(Damped least square method, used for system identification, the effect is good)
    2011-05-08 12:38:01下载
    积分:1
  • ganzhiqishixian
    用MATLAB实现感知器算法,智能优化实验(Perceptron Algorithm with MATLAB implementation, intelligent optimization experiments)
    2011-05-13 14:54:18下载
    积分:1
  • Beatty-(12)
    Reconstruction of magnetic resonance images from data not falling on a Cartesian grid is a Fourier inversion problem typically solved using convolution interpolation, also known as gridding. Gridding is simple and robust and has parameters, the grid oversampling ratio and the kernel width, that can be used to trade accuracy for computational memory and time reductions. We have found that significant reductions in computation memory and time can be obtained while maintaining high accuracy by using a minimal oversampling ratio, from 1.125 to 1.375, instead of the typically employed grid oversampling ratio of two. When using a minimal oversampling ratio, appropriate design of the convolution kernel is important for maintaining high accuracy
    2012-05-27 18:24:56下载
    积分:1
  • Alamouti_scheme
    空时编码技术的matlab仿真,供通信仿真学习适用。(Space-time coding matlab simulation technology for communication simulation study apply.)
    2014-12-01 11:24:28下载
    积分:1
  • MATLAB
    《MATLAB在控制系统中的应用》实例程序( MATLAB in the control system, examples of procedures)
    2008-04-27 23:15:42下载
    积分:1
  • chap4
    用matlab编写的程序,关于MATLAB图像处理的边缘检测等等。(Matlab program, on matlab image processing, edge detection and so on )
    2013-12-18 10:01:26下载
    积分:1
  • ESPRIT
    旋转子空间程序,实现DOA定位,可用于DOA的学习使用(Subspace rotation procedures to achieve DOA positioning, can be used to study the use of DOA)
    2013-11-28 20:00:19下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载