?? boxoss.m
字號:
function ss=boxoSS(theta,data,local)% sum-of-square function for the boxo examplenbatch = length(data);% cumulate the sum-of-squares over the data sets (batches)ss = 0;for i=1:nbatch th = theta(local==0|local==i); tspan = data{i}.ydata(:,1); ydata = data{i}.ydata(:,2:3); ymodel = boxoM(data{i},th); ss = ss + sum((ydata - ymodel).^2); end
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -