-
Mersenne-Twister
利用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.)
- 2012-07-22 21:51:55下载
- 积分:1
-
_auto_contrast_
Image auto contract matlab
- 2011-12-21 19:05:07下载
- 积分:1
-
multidirectionalsearchalgorithm
multidirectional search algorithm
- 2010-07-09 13:23:25下载
- 积分:1
-
LM
说明: 采用贝叶斯正则化算法提高bp网络的性能,即L-M优化算法(The use of Bayesian regularization algorithm to improve network performance bp, that is, LM optimization algorithm)
- 2009-04-30 16:41:56下载
- 积分:1
-
xindaorongliang
说明: matlab语言实现信道容量编码,附带结果截屏。(matlab language channel capacity coding, with the results of screenshot.)
- 2008-11-10 16:59:20下载
- 积分:1
-
paixu2
排序问题,几个老师对多名学生打分,然后对学生进行排序(Scheduling problem, more than a few teachers of students scoring, and then sort the students)
- 2011-11-25 12:22:48下载
- 积分:1
-
rengongshichang
改进人工势场避障程序,用于移动机器人轨迹规划(Improved artificial potential field obstacle avoidance program for mobile robot path planning)
- 2014-12-30 16:44:36下载
- 积分:1
-
case_study_2
matelab关于风电最大功率跟踪控制的simulink仿真,比较了传统的控制方法和信号搜索方法。(matelab About Wind Power Maximum Power Tracking Control of simulink simulation to compare the traditional control method and signal search method.
)
- 2014-02-16 20:31:03下载
- 积分:1
-
lvbo1
FFT数字滤波源代码,和DSP的MATLAB实现相辅相成(FFT digital filtering, source code, and to achieve complementarity DSP-MATLAB)
- 2010-06-21 21:46:48下载
- 积分:1
-
huiduzhifangtu
自己编的一些关于图像灰度直方图处理的MATLAB源程序,包括加权距离,累加直方图,欧氏距离,直方图相交法,中心距法共5种方法,可选择适合的选用。(Own some on the image histogram processing MATLAB source code, including the weighted distance, cumulative histogram, Euclidean distance, histogram intersection of law, from the Law Center, five kinds of methods to choose the appropriate selection.)
- 2007-12-29 19:02:49下载
- 积分:1