Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions on the use of Mathematica to construct models for approximating empirical data.
5
votes
Fitting a two-dimensional Gaussian to a set of 2D pixels
Starting with your data, I would map out the data something like this:
data3D = Flatten[MapIndexed[{#2[[1]], #2[[2]], #1} &, data, {2}], 1]
and then count it like:
data2 = Flatten[Table[{#[[1]], # …
2
votes
Finding a best fit curve and plotting it
my curve is smooth too, and my R^2 is 0.999997
model = NonlinearModelFit[data, ( a/x + b + c Sin[x/d]), {a, {b, 25}, c, d}, {x},
Method -> "LevenbergMarquardt", MaxIterations -> 10000]
Her …