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

Minimum-Risk-Bayes-classifier

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

  • filter01
    说明:  微波射频滤波器设计,切比雪夫滤波器设计及耦合矩阵综合程序。(Microwave RF filter design, Chebyshev filter design and coupling matrix synthesis program)
    2020-11-11 23:59:45下载
    积分:1
  • Rake
    这是rake接收机的MATLAB仿真源程序,很好的仿真了这种分集接收方式(This is a MATLAB simulation source rake receiver, a good simulation of the way that diversity reception)
    2010-08-25 22:15:39下载
    积分:1
  • Desktop
    找函数的零点位置, 返回的是零点的index。 被找的函数须是连续函数 (Find zero points index of a continous function)
    2009-11-18 01:08:25下载
    积分:1
  • doppler_to_pc
    这是仿真多普勒频移对脉压影响的程序,采用Matlab编写。(this is a program about the effect of the Doppler shift on PC.)
    2013-07-30 16:46:42下载
    积分:1
  • mpfc
    MPFC controller design for Electrical transmission
    2014-02-01 15:59:49下载
    积分:1
  • Chaotic-pso-and--article
    混沌粒子群CPSO,内附混沌粒子群的相关理论和改进的论文(Chaotic particle swarm CPSO, the related theory of chaotic particle swarm and the improved thesis)
    2021-03-30 21:29:10下载
    积分:1
  • BER_rq
    本文提供了在不同信噪比条件下衰落信道上多分辨率MQAM同相比特的BER表达式(This article provides different SNR with fading channels compared to multi-resolution characteristics of MQAM BER expression)
    2010-08-18 18:30:53下载
    积分:1
  • HeatTransport
    数值方法计算传热问题实例 边长为200×200mm的二维矩形材料内的稳态温度分布。上侧和左侧维持恒壁温;下侧为绝热;右侧为对流换热条件。具体参数为: 材料的导热系数=20w/m• k; 上侧温度t1=100℃ 右侧流体温度tf=20℃ 表面传热系数 h分别为1w/m2• k和100 w/m2• k 左侧温度t2=20℃ 下侧绝热(Numerical method to calculate the heat transfer problem instance side of 200 × 200mm rectangular two-dimensional steady-state temperature distribution within the material. On the left side and to maintain constant wall temperature lower side of insulation the right side of the convective heat transfer conditions. Specific parameters are: thermal conductivity of the material = 20w/m • k on the side of the temperature t1 = 100 ℃ right side of the fluid temperature tf = 20 ℃ surface heat transfer coefficient h were 1w/m2 • k and 100 w/m2 • k temperature t2 = 20 ℃ left side of the insulation under)
    2011-10-13 17:57:16下载
    积分:1
  • ReadFormatFile
    matlab读取各种类型格式(.mat格式.txt格式等)的源代码(the resource matlab mode for reading )
    2011-12-12 14:23:46下载
    积分:1
  • amotorfunction
    Matlab双馈异步风力发电机建模s函数 双馈异步发电机模型一直是风力发电研究的重点,而很多论文的仿真根本就没有建电机模型,这样的仿真是很不准确的,matlab中自带了一个DFIG模型,而这个模型是将发电机、变流器等各个部分都建好了,但对研究发电机的人员来说很不实用。我建的这个模型是分析有功无功解耦时搭建的,用的是s函数,便于修改参数。 (s fuction of pmsg)
    2011-12-18 16:44:24下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载