提供使用通用python包的统计和绘图工具,主要针对高能物理。
hep-spt的Python项目详细描述
high energy physics statistics and plotting tools包提供了使用通用python包在high energy physics中工作的工具。
要点
- 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.
注意事项:
- 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.
安装:
这个包在PyPi上提供,所以只需键入
pip install hep-spt
在当前的python环境中安装包。 因为这个包使用了numpy c api,所以必须已经安装了numpy。 如果尝试在不安装numpy的情况下安装“hep_spt”,则会引发错误。 要使用最新的开发版本,请克隆存储库并使用pip安装:
git clone https://github.com/mramospe/hep_spt.git pip install hep_spt