Skip to main content

A Landau PDF definition to be used in Python.

Project description


example branch parameter

A simple Landau definition to be used in Python, since no common package (Scipy, Numpy, ...) provides this. Also a fast Landau + Gauss convolution is offered, that is usefull for fitting energy losses of charged particles in matter. The Landau is approximated according to Computer Phys. Comm. 31 (1984) 97-111 and the implementation is from CERN ROOT Mathlibs.


The project is hosted at PyPI. For installation just type:

pip install pylandau

If you want to change the code or start contributing download it and put it into a directory of your choice. From the project root folder run:

pip install -e .


import numpy as np
import pylandau

x = np.arange(0, 100, 0.01)
y_landau = pylandau.landau(x)
y_langau = pylandau.langau(x)

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

pylandau-2.2.1.tar.gz (108.1 kB view hashes)

Uploaded source

Built Distributions

pylandau-2.2.1-cp310-cp310-win_amd64.whl (172.3 kB view hashes)

Uploaded cp310

pylandau-2.2.1-cp39-cp39-win_amd64.whl (164.8 kB view hashes)

Uploaded cp39

pylandau-2.2.1-cp38-cp38-win_amd64.whl (157.2 kB view hashes)

Uploaded cp38

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page