elegant-scipy / elegant-scipy-submissions

Submissions of code snippets for the book Elegant SciPy
13 stars 2 forks source link

Fitting a Gaussian to noisy data points #12

Open jni opened 9 years ago

jni commented 9 years ago

From @stefanv

http://scipy-central.org/item/28/2/fitting-a-gaussian-to-noisy-data-points

jni commented 9 years ago

@stefanv I'd like to pair each chapter with some real data. Any ideas for where to use this snippet?

I also would like to find a snippet that uses scipy.optimize.

stefanv commented 9 years ago

A registration example could include real data + optimization. We could also ping @matthew-brett for ideas; he recently taught a class on this topic.

msarahan commented 9 years ago

I'm sure loads of people have examples of fitting peaks. My own research fitted peaks on atomic-resolution images of crystals, and used the fit parameters to say things about the crystal imperfections. This was 2D fitting, which you could expand the example to reasonably easily. I don't do much microscopy myself these days, but could connect you with some good friends at SuperSTEM if that sounds like the kind of data set you might want.