| Author |
Comment/Response |
Arunima Coomar
|
07/29/10 7:15pm
how does one use the findfit function when the list of parameters is continuously changing?
I have the following segment of code:
(*datagauss=some list of data*)
f[amp_,x0_,g]:= amp/(1+((x-x0)/g)^2)
list={{amp1,x1,g1},{amp2,x2,g2},{amp3,x3,g3}}
model=Apply[Plus,Apply[f,list,{1}]]
fit=FindFit[datagauss,model,{amp1,x1,g1,amp2,x2,g2,amp3,x3,g3},x]
My goal is to replace the set of parameters inside the findfit function.
URL: , |
|