![二級模糊評判JAVA編寫_第1頁](http://file4.renrendoc.com/view/47e73dd532dd299441be946f685afb1b/47e73dd532dd299441be946f685afb1b1.gif)
![二級模糊評判JAVA編寫_第2頁](http://file4.renrendoc.com/view/47e73dd532dd299441be946f685afb1b/47e73dd532dd299441be946f685afb1b2.gif)
![二級模糊評判JAVA編寫_第3頁](http://file4.renrendoc.com/view/47e73dd532dd299441be946f685afb1b/47e73dd532dd299441be946f685afb1b3.gif)
![二級模糊評判JAVA編寫_第4頁](http://file4.renrendoc.com/view/47e73dd532dd299441be946f685afb1b/47e73dd532dd299441be946f685afb1b4.gif)
![二級模糊評判JAVA編寫_第5頁](http://file4.renrendoc.com/view/47e73dd532dd299441be946f685afb1b/47e73dd532dd299441be946f685afb1b5.gif)
版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、作業(yè)類型教育信息處理實驗報告項目名稱二次綜合模糊評判學院教育信息技術學院專業(yè)教育技術學年級級姓名郭志強學號 i題目:編程進行二級綜合模糊評判,并驗證講課中實例的結果。對應的數(shù)據(jù):A15(表示對應矩陣的行數(shù)跟列數(shù))0120.08(對應矩陣的數(shù)據(jù))A1140106501015A213A3120.60.4A4120.350.65A5120.60.4R1450640.250.11000.770.1301000020.230400.130040.170.330.4000.10R2350.11000.770.130.100000.130040.170.33R3250.11000.770.
2、130.10000.20.23R4250.100000.130.040.170.33R5250.770.130.100000.13004V519585756555B10.650150150101B20.30130.040.30.3B30110.00.00.6023B40.20.33R55B50.130.04packageorglxh.demo;importjava.util.*; publicclassMatrixOp/創(chuàng)建矩陣publicstaticfloatcreateMatrix(intx,inty)Scannerinput二newScanner(System.in
3、);System.out.println(請輸入+x+行+y+列的矩陣數(shù)據(jù):);floatarray二newfloatxy;for(inti=0;iarray.length;i+)for(intj=0;jarrayilength;j+)arrayij=input.nextFloat();returnarray;/矩陣輸出publicstaticvoidoutputMatrix(floatlist)for(inti=0;ilistlength;i+)for(intj=0;jlistilength;j+)System.out.print(listij+t);System.outprintln();
4、矩陣相乘publicstaticfloatmulMatrix(floatlist1,floatlist2)floatlist3=newfloatlist1lengthlist20.length;if(list10.length!=list2length)System.out.println(兩矩陣不符合相乘的條件1!);elsefor(inti=0;ilist1length;i+)for(intj=0;jlist20.length;j+)for(intk=0;klist2length;k+)list3ij+=list1ik*list2kj;returnlist3;/模糊數(shù)學里面的相乘Publi
5、cstaticfloatvagMulMatrix(floatlist1,floatlist2)floatlist3=newfloatlist1.lengthlist20.length;Listtemp=newArrayList();if(list10.length!=list2length)System.out.println(兩矩陣不符合模糊相乘的條件!);elsefor(inti=0;ilist1length;i+)for(intj=0;jlist20.length;j+)intk;for(k=0;klist2.length;k+)floattem=list1ik=list2kj?list
6、1ik:list2kj;tempadd(tem);/System.out.println(temp最小值+k+t+temp.get(k);Collectionssort(temp);intt;for(t=0;tlist2.length;t+)/System.out.print(tempget(t)+t);/System.out.println();list3ij=tempget(tempsize()-1);/System.out.println(temp最大值+temp.get(temp.size()-1);tempclear();returnlist3;/將評判結果集歸一化publicsta
7、ticfloatnorMatrix(floatlist)floatsum=0f;for(inti=0;ilist0length;i+)sum+=list0i;for(intj=0;jlist0length;j+)list0j=list0j/sum;returnlist;/Main函數(shù)測試publicstaticvoidmain(Stringargs)Scannerinput=newScanner(System.in);/輸入矩陣ASystem.out.println(請輸入權重A的行數(shù)和列數(shù)(如33):);intx=input.nextInt();inty=input.nextInt();fl
8、oatlist1=ceateMat廠ix(x,y);outputMatrix(list1);/輸入矩陣A1Systemout.println(請輸入權重A1的行數(shù)和列數(shù)(如33):);intx1=input.nextInt();inty1=input.nextInt();floatlist2=createMatrix(x1,y1);outputMatrix(list2);/輸入矩陣A2Systemout.println(請輸入權重A2的行數(shù)和列數(shù)(如33):);intx2=input.nextInt();inty2=input.nextInt();floatlist3=createMatrix
9、(x2,y2);outputMatrix(list3);/輸入矩陣A3Systemout.println(請輸入權重A3的行數(shù)和列數(shù)(如33):);intx3=input.nextInt();inty3=input.nextInt();floatlist4=createMatrix(x3,y3);outputMatrix(list4);/輸入矩陣A4);Systemout.println(請輸入權重A4的仃數(shù)和列數(shù)(如33):intx4=input.nextInt();inty4=input.nextInt();floatlist5=ceateMat廠ix(x4,y4);outputMatri
10、x(list5);/輸入矩陣A5);Systemout.println(請輸入權重A5的仃數(shù)和列數(shù)(如33):intx5=input.nextInt();inty5=input.nextInt();floatlist6=createMatrix(x5,y5);outputMatrix(list6);/輸入R1);System.out.println(請輸入權重R1的仃數(shù)和列數(shù)(如33):intx6=input.nextInt();inty6=input.nextInt();floatlist7=createMatrix(x6,y6);outputMatrix(list7);/輸入R2);Sys
11、tem.out.println(請輸入權重R2的仃數(shù)和列數(shù)(如33):intx7=input.nextInt();inty7=input.nextInt();floatlist8=createMatrix(x7,y7);outputMatrix(list8);/輸入R3);System.out.println(請輸入權重R3的仃數(shù)和列數(shù)(如33):intx8=input.nextInt();inty8=input.nextInt();floatlist9=createMatrix(x8,y8);outputMatrix(list9);/輸入R4);System.out.println(請輸入權
12、重R4的仃數(shù)和列數(shù)(如33):intx9=input.nextInt();inty9=input.nextInt();floatlist10=ceateMat廠ix(x9,y9);outputMatrix(list10);/輸入R5);System.out.println(請輸入權重R5的仃數(shù)和列數(shù)(如33):intx10=input.nextInt();inty10=input.nextInt();floatlist11二createMatrix(x10,y10);outputMatrix(list11);/輸入v);System.out.println(請輸入評判集V的仃數(shù)和列數(shù)(如33)
13、:intx11=input.nextInt();inty11=input.nextInt();floatlist12二createMatrix(x11,y11);outputMatrix(list12);/輸出B1System.out.println(得到評判結果集B1:);floatlist13二”agMuLMatrix(list2,list7);outputMatrix(list13);/輸出B2System.out.println(得到評判結果集B2:);floatlist14二”agMuLMatrix(list3,list8);outputMatrix(list14);/輸出B3Sys
14、tem.out.println(得到評判結果集B3:);floatlist15二”agMuLMatrix(list4,list9);outputMatrix(list15);/輸出B4System.out.println(得到評判結果集B4:);floatlist16二”agMuLMatrix(list5,list10);outputMatrix(list16);/輸出B5System.out.println(得到評判結果集B5:);floatlist17二”agMuLMatrix(list6,list11);outputMatrix(list17);/輸入RSystem.out.printl
15、n(請輸入綜合權重集R的行數(shù)和列數(shù)(如33):);intx12=input.nextInt();inty12=input.nextInt();floatlist18=ceateMat廠ix(x12,y12);outputMatrix(list18);/得到B=A*R(模糊矩陣相乘)System.out.println(得到評判結果集B:);floatlist19二”agMuLMatrix(list1,list18);outputMatrix(list19);得到評判結果歸一化結果System.out.println(將評判結果集歸一化);norMatrix(list19);outputMatr
16、ix(list19);/得到B*V的結果floatlist20=/uLMatrix(list19,list12);System.out.println(教學評價的分值為:);outputMatrix(list20);請輸入權重A的行數(shù)和列數(shù)(如33):15請輸入1行5列的矩陣數(shù)據(jù):0.5080.508請輸入權重A1的行數(shù)和列數(shù)(如33):14請輸入1行4列的矩陣數(shù)據(jù):0.10.6505010.15請輸入權重A2的行數(shù)和列數(shù)(如33):13請輸入1行3列的矩陣數(shù)據(jù):請輸入權重A3的行數(shù)和列數(shù)(如33):12請輸入1行2列的矩陣數(shù)據(jù):0.4請輸入權重A4的行
17、數(shù)和列數(shù)(如33):12請輸入1行2列的矩陣數(shù)據(jù):0.350.650.350.65請輸入權重A5的行數(shù)和列數(shù)(如33):12請輸入1行2列的矩陣數(shù)據(jù):0.4請輸入權重R1的行數(shù)和列數(shù)(如33):45請輸入4行5列的矩陣數(shù)據(jù):0.640.250.11000.770.1301000020.230400.130040.170.330.4000.100640250110.00.00.77013010.00.00.20230.40130.040.170.330.40.001請輸入權重R2的行數(shù)和列數(shù)(如33):35請輸入3行5列的矩陣數(shù)據(jù):0.11000.770.130.100000.
18、130040.170.33TOC o 1-5 h z0.110.00.00.70.00.20.2340.170.33請輸入權重R3的行數(shù)和列數(shù)(如33):25請輸入2行5列的矩陣數(shù)據(jù):0.11000.770.130.100010.00.00.70.00.20.23請輸入權重R4的行數(shù)和列數(shù)(如33):25請輸入2行5列的矩陣數(shù)據(jù):0.100000.130.040.170.330.10.00.00.20.2340.170.33請輸入權重R5的行數(shù)和列數(shù)(如33):25請輸入2行5列的矩陣數(shù)據(jù):0.770.130.100000.130.040.770.13010.00.00.130.04請輸入評判集V的行數(shù)和列數(shù)(如33):51請輸入5行1列的矩陣數(shù)據(jù):958575655595.085.075.065.055.0得到評判結果集B1:0.650.150.150101得到評判結果集B2:40.30.3得到評判結果集B3:0.110.00.00.6023得到評判結果集B4:40.2033得到評判結果集B5:0.130.04請輸入綜合權重集R的行數(shù)和列數(shù)(如33)55請輸入5行5列的矩陣數(shù)據(jù):0
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年陳夢與劉陽離婚協(xié)議書策劃模板
- 雙邊教育合作諒解協(xié)議書模板
- 2025年市場調研與分析咨詢服務委托協(xié)議
- 2025年供應商與裝修企業(yè)合作框架協(xié)議
- 2025年企業(yè)合同解除操作規(guī)范
- 2025年勞動合同標準范本分享
- 2025年倉儲糧食管理協(xié)議
- 2025年住宅物業(yè)購買補充協(xié)議
- 2025年勞動人員雇傭協(xié)議
- 2025年八人合伙企業(yè)股權分配協(xié)議書
- (完整)PEP人教版小學生英語單詞四年級上冊卡片(可直接打印)
- 面神經(jīng)疾病課件
- 漢代儒學大師董仲舒思想課件
- 普通沖床設備日常點檢標準作業(yè)指導書
- 科技文獻檢索與利用PPT通用課件
- 《紅樓夢講稿》PPT課件
- DB33∕T 628.1-2021 交通建設工程工程量清單計價規(guī)范 第1部分:公路工程
- 吉祥喜金剛現(xiàn)證中品事業(yè)六支妙嚴(節(jié)錄)
- 國民中小學九年一貫課程綱要語文學習領域(國語文)
- 最全的人教初中數(shù)學常用概念、公式和定理
- 橋面結構現(xiàn)澆部分施工方案
評論
0/150
提交評論