I have the following script and vector of temperatures. I need to run it for parameter values of s=0:1:999, mu=0.1:0.1:100, om=0.01:0.01:10, i.e I need to run the script so many times such that all combinations of the parameters are used. I should end up with 1000^3 nll values stored in an array or table.
If anyone could offer some advice on how to approach this, it would be much appreciated.
T = T';
AT = T-min(T);
s = 0;
mu = 0.1;
om = 0.01;
k = abs(s:-1:(s-t+1));
lambda(t) = mu+sum(om.^k.*AT(id))/sum(om.^k);
nll = -sum(j*log(lambda(j)))+sum(lambda(j));