登录
首页 » matlab » Minimum-Risk-Bayes-classifier

Minimum-Risk-Bayes-classifier

于 2012-02-02 发布 文件大小:4KB
0 284
下载积分: 1 下载次数: 47

代码说明:

  这是模式识别中最小风险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 )

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Creating_Graphical_User_Interfaces
    Matlab官方文档:matlab图形界面编程(Matlab official documents : Matlab GUI Programming)
    2006-05-26 11:23:59下载
    积分:1
  • equ_response1
    equalizer respone for channel F1(Z)=.1Z^2-.25Z^1+1-.25Z^-1+.1Z^-2 for zfl with tap=7,9,15
    2010-06-23 18:41:28下载
    积分:1
  • DT_hetero_wsn
    Direct transmission energy protocol for Wireless sensor networks for heterogeneous setup.
    2015-06-13 15:14:38下载
    积分:1
  • seuil
    language de larecherche dun seuil dans un histogramme d image
    2010-06-26 02:14:35下载
    积分:1
  • watermarking
    一种基于matlab的数字水印的算法实现,该算法可以进行仿真(Matlab-based digital watermarking algorithm, the algorithm can simulate the)
    2009-12-28 15:07:38下载
    积分:1
  • ppmreceive
    说明:  uwb进行脉冲位置调制,并且进行相关接收,画出其图形(UWB pulse position modulation, and the associated receiver, to give their graphics)
    2005-12-06 18:08:37下载
    积分:1
  • B3sample1
    多层次B样条曲面拟合,采用均匀的控制点实现曲面的光滑拟合。(Multi-level B-spline surface fitting, use of control points to achieve a uniform smooth surface fitting.)
    2011-10-03 10:05:53下载
    积分:1
  • KPCA实现
    有一个讲解kpca的个PPT,和一个用MATLAB实现的kpca的程序(There is a PPT explaining KPCA and a KPCA program implemented by MATLAB.)
    2020-09-18 16:47:57下载
    积分:1
  • ecgFilters
    filters signals EKG to detect qrs complex
    2009-12-04 08:33:27下载
    积分:1
  • rorlplay
    processing the signal which is chirp
    2006-10-26 15:12:57下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载