-
111
function pi = solve2(count,m,cc)
借助布冯投针实验 仿真求pi的值
pi=0
frq=0
randNo = binornd(1,cc,1,m)
pro=zeros(1,count)
for j=1:count
for i = 1:m
if randNo(1,i) == 1
frq = frq + 1
end
pro(i) = frq/i
end
pi = (2*m)/frq
pro(j) = pi
end
pro = pro,num =1:count
plot(num,pro) (function pi = solve2 (count, m, cc) to vote with Buffon needle experiment simulation find the value of pi pi = 0 frq = 0 randNo = binornd (1, cc, 1, m) pro = zeros (1, count) for j = 1: count for i = 1: m if randNo (1, i) == 1 frq = frq+ 1 end pro (i) = frq/i end pi = (2* m )/frq pro (j) = pi end pro = pro, num = 1: count plot (num, pro) )
- 2011-05-24 15:39:41下载
- 积分:1
-
Music
传统music算法,用于一个信号源的DOA估计,分辨力很好,很实用,可以用作初学者学习!(Traditional music algorithm, the DOA estimation for a signal source, the resolution is very good, very practical, can be used for beginners to learn!)
- 2012-04-24 20:29:47下载
- 积分:1
-
123
高斯拟合的应用,在曲线方面的应用,个人认为很有用(Gaussian fitting of the application, the application of the curve, think useful)
- 2011-09-01 14:50:51下载
- 积分:1
-
AdvancedURLConnect
How to check the url connections. Pretty straight forward.
- 2010-08-07 13:40:56下载
- 积分:1
-
Factor-analysis-in-chapter-12
matlab中的第12章 因子分析 (含有例子和源码)(Factor analysis in chapter 12)
- 2013-12-23 12:20:29下载
- 积分:1
-
matlab-RR-detection
心电信号RR间期检测等 (ECG RR interval detection)
- 2020-08-16 16:48:23下载
- 积分:1
-
crc.cpp
CRC 校验的基本思想是利用线性编码理论,在发送端根据要传送的k 位二进制码序(crc)
- 2010-01-02 17:27:46下载
- 积分:1
-
MATLAB-GUI-Design-CD
《精通MATLAB GUI设计》的光盘内容,丰富的示例,够你学的了(" Mastering MATLAB GUI design" CD-ROM content, rich examples, enough for you to learn.)
- 2013-07-16 19:44:12下载
- 积分:1
-
simulateanneal
说明: 一个解决0-1背包问题的模拟退火程序,希望给有需要的人帮助(A solution to the 0-1 knapsack problem simulated annealing process, hoping to help those in need)
- 2010-04-13 18:55:18下载
- 积分:1
-
GLCCA
该文件被用于人工数据集的测试。这些数据都是随机生成的。在百度中也可以搜索到相关内容。数据集名字为ultwotwo(this file can used for Performance Comparison on Artificial Data)
- 2013-09-15 13:31:41下载
- 积分:1