I m试图做一些适合装饰。 我有这样的职能:
function F = cdf_3p_model(a,data)
F=1-((1-a(5)-a(6)).*(exp(-abs(data)./a(1)))+((1-a(4)-a(6)).*(exp(-abs(data)./a(2))))+((1-a(4)-a(5)).*(exp(-abs(data)./a(3)))));
以及
function [a residual] = cdf_fit_3p(x,y)
a0 = [10 1 0.1 0.3 0.3 0.3];
lb = [0 0 0 0 0 0];
ub = [];
curvefitoptions = optimset( Display , final , MaxFunEvals ,100000, MaxIter ,50000);
[a, residual] = fmincon(@cdf_3p_model,a0,x,y,lb,ub,curvefitoptions);
end
我确定了初步参数、泡沫、灯泡,但我也如何声明:
a(1) > a(2) > a(3)
a(5) + a(6) +a(7) = 1