Skip to main content

Provides statistical and plotting tools using general python packages, focused to High Energy Physics.

Project description

https://img.shields.io/travis/mramospe/hep_spt.svg https://img.shields.io/badge/documentation-link-blue.svg

The High Energy Physics Statistics and Plotting Tools package provides tools to work in High Energy Physics using general python packages.

Main points

  • Functions needed on day-to-day work, like calculating errors, residuals, etc.

  • Classes to create adaptive binned histograms, and some functions to represent them using matplotlib.

  • Statistical functions to work with Bayesian/Frequentist approaches.

  • Utilities to handle poissonian and/or weighted histograms.

  • Simple classes to work with the CLs method.

  • A set of matplotlib styles.

Considerations:

  • Inputs passed to the functions and classes are usually preferred as numpy.ndarray objects.

  • Plotting functions and classes are designed to work with matplotlib.

  • Statistical tools are built on top of the standard scipy package.

Installation:

This package is available on PyPi, so simply type

pip install hep-spt

to install the package in your current python environment. Since this package uses the Numpy C API, it is necessary to have Numpy already installed. If you attempt to install “hep_spt” with no installation of Numpy, an error will be raised. To use the latest development version, clone the repository and install with pip:

git clone https://github.com/mramospe/hep_spt.git
pip install hep_spt

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

hep_spt-0.0.0.dev3.tar.gz (34.6 kB view hashes)

Uploaded Source

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