-
Minimum-Risk-Bayes-classifier
这是模式识别中最小风险Bayes分类器的设计方案。在参考例程的情况下,自行完善了在一定先验概率的条件下,男、女错误率和总错误率的统计,放入各个数组当中。
全部程序由主函数、最大似然估计求取概率密度子函数、最小错误率贝叶斯分类器决策子函数三块组成。
调用最大似然估计求取概率密度子函数时,第一步获取样本数据,存储为矩阵;第二步对矩阵的每一行求和,并除以样本总数N,得到平均值向量;第三步是应用公式(3-43)采用矩阵运算和循环控制语句,求得协方差矩阵;第四步通过协方差矩阵求得方差和相关系数,从而得到概率密度函数。
调用最小风险贝叶斯分类器决策子函数时,根据先验概率,再根据自行给出的5*5的决策表,通过比较概率大小判断一个体重身高二维向量代表的人是男是女,放入决策数组中。
主函数第一步打开“MAIL.TXT”和“FEMALE.TXT”文件,并调用最大似然估计求取概率密度子函数,对分类器进行训练。第二步打开“test2.txt”,调用最小风险贝叶斯分类器决策子函数,然后再将数组中逐一与已知性别的数据比较,就可以得到在一定先验概率条件下,决策表中不同决策的错误率的统计。
(This is a pattern recognition classifier minimum risk Bayes design .In reference to the case of routine , self- improvement in a certain a priori probability conditions, male , female and total error rate error rate statistics , into which each array .
All programs from the main function , maximum likelihood estimation subroutine strike probability density , the minimum error rate Bayesian classifier composed of decision-making three subfunctions .
Strike called maximum likelihood estimate probability density subroutine , the first step to obtain the sample data , stored as a matrix the second step of the matrix, each row sum , and divided by the total number of samples N, be the average vector The third step is the application of the formula ( 3-43 ) using matrix and loop control statements , obtain the covariance matrix fourth step through the variance-covariance matrix and correlation coefficient obtained , resulting in the probability density function .
Bayesian classifier )
- 2012-02-02 20:37:04下载
- 积分:1
-
k_means
k-means clustring
clusters through a fully vectorized algorithm
- 2009-11-08 17:23:13下载
- 积分:1
-
GMSKsim
说明: GMSK调制程序,采用I/Q调制,生成基带GMSK信号,供大家学习和参考!(GMSK modulation procedures, the use of I/Q modulation, to generate baseband GMSK signal for them to learn from and reference!)
- 2008-11-24 10:32:16下载
- 积分:1
-
Almouti_Ber_Comparasion
Almouti STBC Bit error comparison with MRC
- 2013-09-29 01:23:47下载
- 积分:1
-
Newton
用matlab编写的实现牛顿插值法的代码,生成图像可显示节点数,误差点。(Prepared with the matlab code to achieve Newton interpolation to generate the image to show the number of nodes, the error point.)
- 2010-12-27 18:21:04下载
- 积分:1
-
reg_pi
PI regulation as an example of one of most polupalar methods of usage classical control system methods.
- 2011-05-10 19:53:47下载
- 积分:1
-
fourierTransformDualSpectrum
说明: 充分理解傅立叶变换,直接根据傅立叶积分公式编写,并显示单边,双边谱,对于理解单双边频谱有一定帮助。本程序通过函数与调用来呈现。(Fully understand the Fourier transform, Fourier integral formula directly in accordance with the preparation, and display the unilateral, bilateral spectrum, the spectrum for the understanding of a certain single bilateral help. This procedure with the call to a function.)
- 2009-08-10 21:47:50下载
- 积分:1
-
LS_diffusion
偏微分方程:matlab实现林石算子扩散去噪算法 (Lin Shi operator to achieve diffusion filtering)
- 2010-05-05 19:03:52下载
- 积分:1
-
talor6
使用泰勒算法设计的具有抑制旁瓣功能的雷达方向图(Using Taylor algorithm design direction of the radar chart)
- 2013-07-12 12:59:09下载
- 积分:1
-
Underground-communication
井下通信时的链路预算,包括误码率和信道容量的仿真。(Underground communication link budget, including the BER and channel capacity in the simulation.)
- 2014-11-18 15:48:10下载
- 积分:1