-
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
-
p_judge
判断一组数据服从何种分布:正态分布判,断泊松分布判断,γ分布判断,指数分布判断,rayleigh分布判断(Determine a set of data obey what distribution
)
- 2013-08-25 09:13:28下载
- 积分:1
-
featureselect_FW_fast
新基于邻域粗糙集的前向贪心的属性约简算法(New neighborhood-based forward greedy rough set attribute reduction algorithm)
- 2021-03-31 14:39:09下载
- 积分:1
-
meachnical-fault-diagnosis
讲述了机械故障诊断中一些理论知识,如现在常用的HHT,对初学者有帮助。(Tells the story of some mechanical fault diagnosis theory of knowledge, such as the now commonly used HHT, help for beginners.)
- 2013-11-24 10:32:09下载
- 积分:1
-
EM_Gaussian
基于EM算法的高斯混合模型参数估计Matlab算法,(EM algorithm-based parameter estimation of Gaussian mixture model)
- 2012-01-28 22:39:30下载
- 积分:1
-
rician
产生Rician分布的noise
Matlab源程序(Rician distribution noise maker
in Matlab)
- 2009-11-11 10:28:35下载
- 积分:1
-
chap3_1
专家PID源程序 刘金锟 先进PID(Expert PID source)
- 2010-05-12 20:31:05下载
- 积分:1
-
CompressSensing_2PPT
压缩感知技术中两篇重要的PPT文档,来自海外,有助于理解基本匹配算法及其拓展,以及近三年来CS研究进展。(Compressed sensing technology in two important PPT document, from overseas, helping to understand the basic matching algorithm and its development, as well as the past three years CS research progress.)
- 2012-07-23 09:02:51下载
- 积分:1
-
alpha_beta_filting
该函数实现标准的常增益滤波算法,用于状态估计,目标跟踪(Alpfa beta filter)
- 2011-10-05 11:47:45下载
- 积分:1
-
lms
现代信号处理,语音处理,matlab程序,LMS算法(matlab lms speech)
- 2013-12-03 11:09:13下载
- 积分:1