登录
首页 » matlab » Mersenne-Twister

Mersenne-Twister

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

  • nasze
    neural network for matlab 7.14
    2009-04-17 01:17:14下载
    积分:1
  • matlne
    【matlab编程代做】简单的小波变换(Wavelet)实现数字水印源代码([Do] simple matlab program generation wavelet transform (Wavelet) digital watermarking source code)
    2015-01-13 21:02:43下载
    积分:1
  • pose_estimation_code_release_v1.21
    动作识别--姿势估计--c++和matlab--经过测试--能够运行(action recognition)
    2014-07-28 15:15:47下载
    积分:1
  • 粒子群最优解
    粒子群算法例程,之前数学建模美赛时使用的代码,发出来和大家分享一下(PSO.rar Particle swarm algorithm routines, mathematical modeling used before the contest code used to send out to share with you)
    2018-04-21 11:38:25下载
    积分:1
  • EAV
    该算法是通过统计图像某一边缘法向方向的灰度变化情况来进行评价。即灰度变化越剧烈, 边缘越清晰, 图像也越清晰。(The algorithm is an edge of the image through the statistical method to change the direction of the gray scale to be evaluated. The more intense the gray change, the more clear the edge of the image are more clear.)
    2011-01-14 14:12:53下载
    积分:1
  • cheking_frequency_match_ppg_and_accelaration
    it s really good i mean very very good what I meant is it s really good
    2014-10-25 17:28:34下载
    积分:1
  • Important-Papers
    Important Papers for MIMO-OFDM System
    2015-02-11 22:14:15下载
    积分:1
  • 802.11
    802.11程序对无线局域网11的系统构成、信号体制、编解码以及OFDM结构等等,MIMO系统等等进行编程实现(802.11 wireless LAN system 11 program constitutes the signal system, codecs and OFDM structure, etc., MIMO systems, etc. can be programmed to achieve)
    2013-11-30 15:11:53下载
    积分:1
  • chazhifa
    本程序为利用给定节点,求未知节点插值法,包括拉格朗日插值法和牛顿向前插值法(This procedure for the use of a given node, seeking the unknown node interpolation method, including the Lagrange interpolation method and Newton' s forward interpolation)
    2009-12-24 20:14:45下载
    积分:1
  • lianxufenliyouhua
    利用matlab编写的根据连续分离变量方法设计的优化程序包(Using matlab to prepare the basis for a continuous optimization of separation of variables designed package)
    2009-11-04 16:05:54下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载