-
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
-
psocode
optimization of function by PSO
- 2013-08-15 12:28:24下载
- 积分:1
-
exampdsp
数字信号处理的matlab程序,里面有大量的例程,可以帮助很好的理解(Digital signal processing matlab program, which has a large number of routines that can help a good understanding of)
- 2008-06-02 18:08:53下载
- 积分:1
-
自适应滤波器
通过设计一个二阶加权系数自适应横向FIR滤波器,对一个加随机噪声的正弦信号实现滤波。
具体设计方案为:
1,生成标准正弦信号S
2,生成等长的随机信号N
3,生成加随机噪声的正弦信号X
4,X通过参数可调数字滤波器,输出Y
5,Y与参考信号作差得到误差E
6,E通过自适应算法调整权值W
7,用LMS算法处理噪声干扰的信号,最终实现滤波器功能(A two order weighted coefficient adaptive transverse FIR filter is designed to filter a sinusoidal signal with random noise.
The specific design scheme is as follows:
1, generating a standard sinusoidal signal S
2, generating an equal length random signal N
3, generating a sinusoidal signal X with random noise
4, X can adjust the digital filter by parameter and output Y
5, the difference between the Y and the reference signal is E
6, E adjusts the weight W through the adaptive algorithm
7, the LMS algorithm is used to deal with the noise interference signal, and the filter function is finally realized.)
- 2018-03-15 21:40:51下载
- 积分:1
-
Multiplepath2
说明: 此程序用来仿真多径信道,希望能有所帮助,运行稳定。(Simulation of the process used to multi-path channel, hoping to help, running stable.)
- 2008-10-19 21:47:11下载
- 积分:1
-
dataprocessofMATLAB
说明: MATLAB-数据处理-一个文件数据处理小程序(MATLAB-data processing-a small data-processing document procedures)
- 2006-03-12 10:56:17下载
- 积分:1
-
44
说明: 主要介绍了有限差分方法的MATLAB编程(Finite difference method of MATLAB Programming)
- 2010-05-20 15:20:32下载
- 积分:1
-
grad
matlab程序求图像的梯度,获得图像的纹理信息丰富的点或边缘点、角点等。(to get the gradient of mage, the image texture information rich points or edge, corner, etc.)
- 2013-12-19 09:53:24下载
- 积分:1
-
separation-of-p-and-s-wave
二维交错网格纵横波分离的弹性波正演模拟 matlab仿真(Two-dimensional staggered grid of p-wave elastic wave forward modeling of the separation of the matlab simulation)
- 2020-11-11 21:29:44下载
- 积分:1
-
GAljgh
基于遗传算法的移动机器人路径规划研究,该论文在分析了目前各种路径规划方法优缺点的基础上,选择遗传算法来解决静态和动态环境下移动机器人的路径规划问题。
(Based on genetic algorithms for mobile robot path planning studies, the paper analyzed the current advantages and disadvantages of various methods of path planning based on the choice of genetic algorithm to solve the static and dynamic environment of mobile robot path planning.)
- 2008-05-07 17:22:00下载
- 积分:1