基于fisher准则线性分类器设计matlab实现源代码

基于fisher准则线性分类器设计matlab实现源代码

ID:15255254

大小:29.00 KB

页数:6页

时间:2018-08-02

基于fisher准则线性分类器设计matlab实现源代码_第1页
基于fisher准则线性分类器设计matlab实现源代码_第2页
基于fisher准则线性分类器设计matlab实现源代码_第3页
基于fisher准则线性分类器设计matlab实现源代码_第4页
基于fisher准则线性分类器设计matlab实现源代码_第5页
资源描述:

《基于fisher准则线性分类器设计matlab实现源代码》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、基于Fisher准则线性分类器设计Matlab实现源代码x1=[0.23311.52070.64990.77571.05241.1974...0.29080.25180.66820.56220.90230.1333...-0.54310.9407-0.21260.0507-0.08100.7315...0.33451.0650-0.02470.10430.31220.6655...0.58381.16531.26530.8137-0.33990.5152...0.7226-0.20150.4070-0.1717-1.0573-0.2099]';y1=[2.33852.19461.673

2、01.63651.78442.0155...2.06812.12132.47971.51181.96921.8340...1.87042.29481.77142.39391.56481.9329...2.20272.45681.75231.69912.48831.7259...2.04662.02262.37571.79872.08282.0798...1.94492.38012.23732.16141.92352.2604]';z1=[0.53380.85141.08310.41641.11760.5536...0.60710.44390.49280.59011.09271.0756

3、...1.00720.42720.43530.98690.48411.0992...1.02990.71271.01240.45760.85441.1275...0.77050.41291.00850.76760.84180.8784...0.97510.78400.41581.03150.75330.9548]';%瀛樺偍绗竴绫荤偣x2=[1.40101.23012.08141.16551.37401.1829...1.76321.97392.41522.58902.84721.9539...1.25001.28641.26142.00712.18311.7909...1.3322

4、1.14661.70871.59202.93531.4664...2.93131.83491.83402.50962.71982.3148...2.03532.60301.23272.14651.56732.9414]';y2=[1.02980.96110.91541.49010.82000.9399...1.14051.06780.80501.28891.46011.4334...0.70911.29421.37440.93871.22661.1833...0.87980.55920.51500.99830.91200.7126...1.28331.10291.26800.71401

5、.24461.3392...1.18080.55031.47081.14350.76791.1288]';z2=[0.62101.36560.54980.67080.89321.4342...0.95080.73240.57841.49431.09150.7644...1.21591.30491.14080.93980.61970.6603...1.39281.40840.69090.84000.53811.3729...0.77310.73191.34390.81420.95860.7379...0.75480.73930.67390.86511.36991.1458]';%瀛樺偍绗

6、簩绫荤偣Pw1=0.6Pw2=0.4%姹傜涓€绫荤偣鐨勫潎鍊煎悜閲弇1m1x=mean(x1(:))%鍏ㄩ儴骞冲潎m1y=mean(y1(:))%鍏ㄩ儴骞冲潎m1z=mean(z1(:))%鍏ㄩ儴骞冲潎m1=[m1xm1ym1z]%姹傜浜岀被鐐圭殑鍧囧€煎悜閲弇2m2x=mean(x2(:))%鍏ㄩ儴骞冲潎m2y=mean(y2(:))%鍏ㄩ儴骞冲潎m2z=mean(z2(:))%鍏ㄩ儴骞冲潎m2=[m2xm2ym2z]%姹傜涓€绫荤被鍐呯鏁g煩闃礢1S1=zeros(3,3)fori=1:36S1=S1+([x1(i),y1(i),z1(i)]'-m1)*([x1(i),y

7、1(i),z1(i)]'-m1)'end%姹傜浜岀被绫诲唴绂绘暎鐭╅樀S2S2=zeros(3,3)fori=1:36S2=S2+([x2(i),y2(i),z2(i)]'-m2)*([x2(i),y2(i),z2(i)]'-m2)'end%姹傛€荤被鍐呯鏁e害鐭╅樀SwSw=S1+S2%姹傚悜閲廤*W=(inv(Sw))*(m1-m2)%鐢诲嚭鍐崇瓥闈?x=0:.1:2.5y=0:.1:3[X,Y]=meshgrid(x,y)Z=(W(1

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。