資源簡介
這個是我看文獻做的一個anfis(自適應神經網絡模糊推理系統)的一個例子,已經表明注釋,很容易上手
代碼片段和文件信息
%?This?code?is?an?anfis?algorithm?example?
%?struct?the?data
x?=?0:0.01:10;
y?=?sin(2*x)./exp(x/5);
%?Parameters?設計
%?訓練數據
trnData?=?[x‘y‘];
%?5條隸屬函數
numMFs?=?5;
%?采用高斯型隸屬函數,也可以選用其他種類的隸屬度函數
mfType?=?‘gaussmf‘;
%?訓練的次數
epoch_n?=?20;
in_fismat?=?genfis1(trnDatanumMFsmfType);
out_fismat?=?anfis(trnDatain_fismatepoch_n);
plot(xy‘o‘xevalfis(x‘out_fismat)‘k‘);
legend(‘Training?Data‘‘ANFIS?Output‘)
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????481??2012-03-01?19:15??anfisExample_book.m
?????文件????1574145??2012-03-01?09:43??ANFIS.pdf
-----------?---------??----------?-----??----
??????????????1574626????????????????????2
評論
共有 條評論