/funfolding

Implementation of Likelihood-Based unfolding techniques and Decision-Tree based binning

Primary LanguagePythonMIT LicenseMIT

FUNFOLDING Build Status PyPI version

         _____
     _-~~     ~~-_//
   /~             ~\
  |              _  |_
 |         _--~~~ )~~ )___
\|        /   ___   _-~   ~-_
\          _-~   ~-_         \
|         /         \         |
|        |           |     (O  |
 |      |             |        |
 |      |   O)        |       |
 /|      |           |       /
 / \ _--_ \         /-_   _-~)
   /~    \ ~-_   _-~   ~~~__/
  |   |\  ~-_ ~~~ _-~~---~  \
  |   | |    ~--~~  / \      ~-_
   |   \ |                      ~-_
    \   ~-|                        ~~--__ _-~~-,
     ~-_   |                             /     |
        ~~--|                                 /
          |  |                               /
          |   |              _            _-~
          |  /~~--_   __---~~          _-~
          |  \                   __--~~
          |  |~~--__     ___---~~
          |  |      ~~~~~
          |  |

Python library to perform spectral unfoldings.

Getting Started

Prerequisites

The prerequesites are handled by the setup.py, if you are using conda, you might want to install the available packages via conda first.

matplotlib
numpy
pymc3
scikit-learn>=0.19.0
scipy

Installing

Install via pip:

pip install funfolding

Running the tests

The package has some basic unit tests. You can test them by

python setup.py test

Another way to test the installation is to run the examples from the examples folder.