Skip to main content

Distribution Fitting/Regression Library

Project description

probfit

probfit is a set of functions that helps you construct a complex fit. It’s intended to be used with iminuit. The tool includes Binned/Unbinned Likelihood estimator, \(\chi^2\) regression, Binned \(\chi^2\) estimator and Simultaneous fit estimator. Various functors for manipulating PDF such as Normalization and Convolution(with caching) and various builtin functions normally used in B physics is also provided.

from probfit import UnbinnedLH, gaussian
from iminuit import Minuit
data = np.randn(10000)
ulh = UnbinnedLH(data)
m = Minuit(ulh, mean=0.1, sigma=1.1)
m.migrad()
ulh.draw(m)

Requirement

Tutorial

open tutorial.ipynb in ipython notebook. You can view it online too.

Documentation

See here

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

probfit-1.0.2.tar.gz (754.8 kB view details)

Uploaded Source

File details

Details for the file probfit-1.0.2.tar.gz.

File metadata

  • Download URL: probfit-1.0.2.tar.gz
  • Upload date:
  • Size: 754.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for probfit-1.0.2.tar.gz
Algorithm Hash digest
SHA256 55ee00d50cd1df6cc943b347a276822bb76ba6d1db5d660fd606192e806529fc
MD5 4669db2e9aef19392e11c7c18ffdf2e8
BLAKE2b-256 f09fc462505ae84c65f439a8cd46e5d93eb26aebbefa87f58fe663090bf7cd3a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page