📄 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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -