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

Minimum-Risk-Bayes-classifier

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

  • testpolyfit
    polyfit demo program with noise added in(polyfit)
    2009-06-10 00:53:27下载
    积分:1
  • BluetoothLe_ibeacon
    蓝牙定位的DEMO,安卓要求4.4,如果没有4.4就不行哦(Bluetooth positioning DEMO, Andrews requires 4.4, 4.4 will not work if not oh)
    2015-03-23 11:12:44下载
    积分:1
  • diedai
    迭代算法,利用matlab编译环境实现迭代求解矩阵最大特征值和特征向量;包含雅克比迭代、高斯迭代和SOR(Iterative algorithm, using matlab compiler environment to achieve maximum iteration for solving matrix eigenvalues ​ ​ and eigenvectors contains Jacobi iteration, Gauss and SOR iteration)
    2013-05-25 15:58:03下载
    积分:1
  • Var-calculation
    基于MATLAB的风险价值VAR计算,包含蒙特卡洛模拟等相关源码。(MATLAB VAR calculation )
    2015-10-31 22:37:29下载
    积分:1
  • mfiles
    mfiles useful for finding huffman code
    2010-02-02 16:04:54下载
    积分:1
  • GridCODE
    无线通信中MIMO系统空时格码技术编程4状态情况(Wireless communications, MIMO system empty grid code technology programming 4-state situation)
    2012-12-30 22:17:54下载
    积分:1
  • checkrefractiveindexprofile.m
    This function is for changing the refractive index profile in the Simulation - You can change and delete the according Refractive index parts(This function is for changing the refractive index profile in the Simulation- You can change and delete the according Refractive index parts)
    2013-09-25 03:31:26下载
    积分:1
  • chazhi
    详细介绍了matlab插值与拟合方法,包括拉格朗日多项式插值、牛顿插值、分段线性插 值、Hermite 插值和三次样条插值和曲线的最小二乘拟合、多项式拟合方法、最小二乘优化所有程序均有相应的说明与应用实例(Details of the matlab interpolation and fitting methods, including Lagrange polynomial interpolation, Newton interpolation, piecewise linear interpolation Value, Hermite interpolation and cubic spline interpolation and least-squares curve fitting, polynomial fitting method, least squares optimization program has all the appropriate instructions and application examples)
    2013-12-08 20:21:36下载
    积分:1
  • GA-bP
    遗传算法和神经网络混合编程,可用于优化计算,仅供参考(Genetic algorithm and neural network hybrid programming, can be used to optimize the calculation, for reference only)
    2007-11-12 20:43:49下载
    积分:1
  • 求解tsp的改进遗传算法matlab源码-吸血鬼
    求解tsp的改进遗传算法matlab源码(Improved Genetic Algorithms Matlab FOSS)
    2005-03-30 07:04:59下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载