Skip to content

Tool using scipy.optimize.minimize to fit histograms to useful functional forms, with uncertainties on fit parameters reported.

License

Notifications You must be signed in to change notification settings

SBC-Collaboration/GenericHistFit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GenericHistFit

Tool using scipy.optimize.minimize to fit histograms to useful functional forms, with uncertainties on fit parameters reported.

Features include simple expansion to user-defined functional forms, ability to freeze parameters and apply priors, ability to create arbitrary combinations of distributions, hessian and gradient functions created and passed to scipy.optimize.minimize by default, ...

See examples.py for usage

Installing the package

Option 1: Cloning repository and install via pip

First, clone the repository:

git clone git@github.com:cericdahl/GenericHistFit.git

Move into the repository and install the package:

cd GenericHistFit
pip install -e .

Note that this installs the package in "editable" mode, meaning you can make changes to the source code that will be reflected each time you run the code.

Once the package has been installed in this way, you can import this package into your python scripts in any directory:

import GenericHistFit.GHF as ghf

About

Tool using scipy.optimize.minimize to fit histograms to useful functional forms, with uncertainties on fit parameters reported.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%