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

Minimum-Risk-Bayes-classifier

于 2012-02-02 发布 文件大小:4KB
0 277
下载积分: 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 个回复

  • Matlab2word
    基于matlab编写,是一段生成word文档的小程序,文档中有一个表格,希望对大家编写输出数据程序有帮助(Matlab-based development, is a word document to generate a small program, a form document, prepared for all of us hope that the process output data to help)
    2009-05-08 22:48:30下载
    积分:1
  • DTX
    DTX matlab code for g729 annect B
    2013-07-19 15:15:42下载
    积分:1
  • main
    《信息智能处理技术》模拟退火技术源代码。(" Intelligent Information Processing Technology" simulated annealing source code.)
    2010-05-21 21:12:30下载
    积分:1
  • matlab-Optimization3
    matlab上关于整数优化设计的一个很好源程序(matlab on integer optimization design a good source)
    2012-08-27 13:26:43下载
    积分:1
  • calendar
    牛X的日历代码 用matlab编定的GUI设计代码.....(calendar , MATLAB GUI desire)
    2011-12-12 13:14:10下载
    积分:1
  • dhj
    matlab simulink implementation and analysis of Three-phase inverter3
    2013-11-30 22:51:06下载
    积分:1
  • MAT101_ECG_authentication
    ecg (electro cardio gram) based authetication in matlab.output varified 100 working code.bla bla bla bla bla bla
    2015-12-15 17:21:08下载
    积分:1
  • cylinder
    基于LBM圆柱绕流模拟matlab程序代码,简单几行代码就可以实现圆柱绕流的可视化模拟,而且还是实时的,采用D2Q9模型,适合初学者学习。(Circular cylinder based on the LBM simulation matlab program code, a simple few lines of code can achieve circular cylinder visual simulation, but also real-time using D2Q9 model, suitable for beginners to learn.)
    2009-03-24 11:19:46下载
    积分:1
  • moni
    说明:  一个机器人避障的仿真,在MATLAB下运行。(A robot obstacle avoidance simulation run in MATLAB.)
    2008-11-22 17:04:44下载
    积分:1
  • idealfilter
    matlab低通滤波器,初学,简单程序(err)
    2008-07-29 19:56:23下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载