kafe2 documentation

kafe2 logo

Welcome to kafe2, the Karlsruhe Fit Environment 2!

kafe2 is a data fitting framework designed for use in undergraduate physics lab courses. It provides a basic Python toolkit for fitting models to data as well as visualizing the data and the model function. It relies on Python packages such as numpy and matplotlib, and can use the Python interface to the minimizer Minuit contained in the data analysis framework ROOT or in the Python package iminuit.

The first chapter of this documentation gives detailed installation instructions. The Beginner’s Guide explains basic kafe2 usage to cover simple cases (both Python code and kafe2go). The User Guide and the kafe2go Guide describe advanced kafe2 use with Python code or kafe2go. The next chapter explains the mathematical foundations upon which kafe is built. While strictly speaking not required to use kafe2, reading the theory chapter is strongly recommended to understand which features to use in a state-of-the-art data analysis (regardless of whether kafe2 or another data analysis tool is used). The Developer Guide covers topics that are only relevant if you want to work on kafe2 as a developer (still very much WIP). Finally, the API Documentation provides a full description of the user-facing kafe2 application programming interface.