본문 바로가기

프로그램 사용법/Matlab

[Matlab]RBF(Radial Basis Function)

Data = [16,1.50000000000000;15.7399161535537,1.12331893483517;15.6839077882824,1.23995252566490;15.9172670690844,1.04965443032574;20,3;20.4027161099153,3.44478718972165;20.5908640924681,2.98925263840002;19.8377194098214,3.40005384641766;23,4;22.8692467811202,3.61120275529379;23.2802520683211,3.88973883696125;22.7416912859138,3.90391214558812;15.5000000000000,15;15.0964545251684,14.6319732926063;15.9420505907755,15.4561345402298;15.5752085950785,14.5597795429472;18.5000000000000,16.5000000000000;18.2347799133724,16.3531585712221;18.8211940401980,16.0154034376516;18.0430238016578,16.1689900294627;14,14;14.1491154749565,14.2317223856587;14.1477459631363,13.9509237064309;14.0470088922863,13.7963208056078;2,6.50000000000000;2.24469280707416,6.18895501503254;2.18677543336532,6.68351115573727;1.86848459649034,6.62561856072969;1,6.50000000000000;1.28022743515138,5.58112576886579;1.42938597096873,6.47571267860840;0.986791632403172,5.93585858858092;4.50000000000000,8.50000000000000;4.44678374942981,8.30634947201656;4.60850865538113,8.01077156417211;4.81762770832226,8.79483141688345;];



target = [1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3;];

net = newrbe(Data([1,2,3,5,6,7,9,10,...

    11,13,14,15,17,18,19,...

    21,22,23,25,26,27,29,...

    30,31,33,34,35],:)',target);

 

RBF = sim(net,Data([4,8,12,16,20,24,28,32,36],:)')