Skip to content

Fork of Gaussfitter that used to be on agpy to broaden the range of peaked functions that can be fit.

License

Notifications You must be signed in to change notification settings

Smithsonian/peakfitter

 
 

Repository files navigation

Peakfitter

Generalization of [Gaussfitter](https://github.com/keflavich/gaussfitter) to add additional peak shapes, such as Bessel functions.

Installation:

pip install https://github.com/smithsonian/peakfitter/archive/master.zip

or

pip install -e git+https://github.com/smithsonian/peakfitter.git#egg=peakfitter

or

git clone https://github.com/smithsonian/peakfitter.git cd peakfitter python setup.py install

The gaussfitter code was taken from agpy, where it has resided for a long time and has had a long, glorious history.

In short: This is a small toolkit for fitting 2D gaussians and other peaked distributions. It makes use of mpfit.py by Sergei Koposov (https://code.google.com/p/astrolibpy/source/browse/), and a modified version of his code is included (by necessity) here. It is modified primarily to remove a scipy dependency.

Examples to come! PRs welcome!

Tested in Python 3.8

About

Fork of Gaussfitter that used to be on agpy to broaden the range of peaked functions that can be fit.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%