Histimator
A solution for performing maximum likelihood estimation on models built from histogram templates.
Free software: GNU General Public License v3
Documentation: https://histimator.readthedocs.io.
Features
TODO
Usage
the histimator core directory has a file called Models containing the core HistiModel class.
the model is initialised:
from histimator.models import HistiModel
model = HistiModel("model name")
Each channel is defined as:
from histimodel.Channel import HistiChannel
SR = HistiChannel("SignalRegion")
data can be added to the channels as:
SR.SetData([list of data points])
any number of samples are defined as:
from histimator.models import HistiSample
sig = HistiSample("Signal")
bkg = HistiSample("Background")
each of which needs a histogram:
sig.SetHisto(numpy.histogram) bkg.SetHisto(numpy.histogram)
currently the only parameters available are an overal normalisation on these templates. this is given with a name an initial value (default 1) and a range (default [0.1,10]). Currently no implementation is actually in place to tell Minuit about this range…:
sig.AddNorm("some_norm",1,0,3)
Finally, the samples must be added to the channel and this added to the model.:
SR.AddSample(sig) SR.AddSample(bkg) model.AddChannel(SR)
This model can now be evaluated using probfit Binned Likelihood function:
from iminuit import Minuit from probfit import BinnedLH blh = BinnedLH(model.pdf, data, bins=10, bound=bound, extended=True) m = Minuit(blh, some_norm=0.5, error_some_norm=1.5) m.migrad()
this has various built in plotting functionality.
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2018-02-16)
First release on PyPI.
Metadata
Release files for Histimator 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Histimator-0.2.1.tar.gz | 19.1 kB | Without provenance | Details for Histimator-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Histimator-0.2.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for Histimator-0.2.1-py2.py3-none-any.whl |
Total release size: 28.6 kB
Release files / Histimator-0.2.1.tar.gz
| Download URL | Histimator-0.2.1.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b089a033a999f3850a5ffcf39b8fb9cf81ba6ae57f4d4f91f7df0919638b8556
|
|
BLAKE2b-256 checksum How to use checksums |
773d464df0817e5dfc4514dcb6728284fc5878ee312783a0ddbefc7edb123afb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Histimator-0.2.1-py2.py3-none-any.whl
| Download URL | Histimator-0.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
6c941c5a17c15dffc6047e4519758c64c547cbeaf95ee697b8759c01a1d81010
|
|
BLAKE2b-256 checksum How to use checksums |
206d96ded101c7aa2a6567f052999043d98fb4511b3e80ed3c505e231046a9b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Histimator 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.