登录
首页 » matlab » Mersenne-Twister

Mersenne-Twister

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

  • sbox
    Matlab tool for S,Z,H,Y parameter transfer(Matlab tool for S, Z, H, Y parameter transfer)
    2006-06-14 10:48:05下载
    积分:1
  • Skin
    BRC MATLAB code for BRC.fig BRC, by itself, creates a new BRC or raises the existing singleton*. H = BRC returns the handle to a new BRC or the handle to the existing singleton CALLBACK ,hObject,eventData,handles,...) calls the local function named CALLBACK in BRC.M with the given input arguments.BRC Property , Value ,...) creates a new BRC or raises the existing singleton.Starting from the left, property value pairs are applied to the GUI before BRC_OpeningFcn gets called.An unrecognized property name or invalid value makes property application stop. All inputs are passed to BRC_OpeningFcn via varargin.See GUI Options on GUIDE s Tools menu. Choose "GUI allows only one.instance to run (singleton)".Edit the above text to modify the response to help.Begin initialization code - DO NOT EDIT
    2011-08-30 17:22:12下载
    积分:1
  • I_love_you
    一个很有意思的小程序,可以用于向对方表白哦。(A very interesting small program that can be used to declare each other oh.)
    2013-12-11 22:35:50下载
    积分:1
  • relay_jsac
    LTE relay selection strategy
    2014-02-28 16:20:50下载
    积分:1
  • classical_music
    经典的MUSIC算法MATLAB程序,对新手很有用(classical music)
    2012-03-27 17:02:29下载
    积分:1
  • Matlabmathjianmotoolbox
    Matlab数学建模工具箱 各种算法、程序源代码应有尽有(Matlab toolbox of mathematical modeling algorithms, source code everything)
    2010-05-19 22:52:06下载
    积分:1
  • EKF--IEKF--and-UKF-Project
    EKF, IEKF, and UKF算法在matlab中的实现(EKF, IEKF, and UKF method implementation)
    2011-05-29 15:56:38下载
    积分:1
  • PSO
    粒子群算法源代码,属于进化算法的一种,和遗传算法相似,它也是从随机解出发,通过迭代寻找最优解。(Particle swarm algorithm source code, is a kind of evolutionary algorithm, and genetic algorithm are similar, it is also starting from the random solutions, through the iterative search for the optimal solution.)
    2013-11-29 10:17:46下载
    积分:1
  • asli
    2D FDTD of a region with Mur s absorbing boundary condition (ABC)
    2014-11-24 06:20:28下载
    积分:1
  • JPEG
    JPEG 压缩源代码,适合初学者,具有一定的参考价值(JPEG compression source code, suitable for beginners)
    2010-08-29 11:01:15下载
    积分:1
  • 696516资源总数
  • 106432会员总数
  • 11今日下载