資源簡(jiǎn)介
這個(gè)是我看文獻(xiàn)做的一個(gè)anfis(自適應(yīng)神經(jīng)網(wǎng)絡(luò)模糊推理系統(tǒng))的一個(gè)例子,已經(jīng)表明注釋?zhuān)苋菀咨鲜?
代碼片段和文件信息
%?This?code?is?an?anfis?algorithm?example?
%?struct?the?data
x?=?0:0.01:10;
y?=?sin(2*x)./exp(x/5);
%?Parameters?設(shè)計(jì)
%?訓(xùn)練數(shù)據(jù)
trnData?=?[x‘y‘];
%?5條隸屬函數(shù)
numMFs?=?5;
%?采用高斯型隸屬函數(shù),也可以選用其他種類(lèi)的隸屬度函數(shù)
mfType?=?‘gaussmf‘;
%?訓(xùn)練的次數(shù)
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‘)
?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----
?????文件????????481??2012-03-01?19:15??anfisExample_book.m
?????文件????1574145??2012-03-01?09:43??ANFIS.pdf
-----------?---------??----------?-----??----
??????????????1574626????????????????????2
評(píng)論
共有 條評(píng)論