Advertisement
Guest User

Untitled

a guest
Nov 29th, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. In[1]:= data = {{3501, 19}, {3502, 48}, {3503, 145}, {3504,
  2. 318}, {3505, 554}, {3506, 1017}, {3507, 1405}, {3508,
  3. 1829}, {3509, 2132}, {3510, 2255}, {3511, 1824}, {3512,
  4. 1438}, {3513, 971}, {3514, 548}, {3515, 244}, {3516, 136}, {3517,
  5. 52}, {3518, 12}};
  6.  
  7. In[2]:= G[x_, a_, b_, c_] := a*Exp[-(((x) - b)^2/(2 c^2))];
  8.  
  9. In[3]:= NLM = NonlinearModelFit[data, G[q, a, b, c]), {a, b, c}, q, Method -> NMinimize] // Normal
  10.  
  11.  
  12. Out[3]= 2186.87 E^(-0.067269 (-3509.5 + q)^2)
  13.  
  14. In[4]:= NLM["ParameterTable"]
  15.  
  16. Out[4]= (2186.87 E^(-0.067269 (-3509.5 + q)^2))["ParameterTable"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement