Skip to main content

A Landau PDF definition to be used in Python.

Project description

pylandau

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.

Installation

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 .

Usage

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 CPython 3.10 Windows x86-64

pylandau-2.2.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (450.4 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

pylandau-2.2.1-cp310-cp310-macosx_11_0_arm64.whl (185.3 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

pylandau-2.2.1-cp310-cp310-macosx_10_9_x86_64.whl (186.4 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

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

Uploaded CPython 3.9 Windows x86-64

pylandau-2.2.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (441.8 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

pylandau-2.2.1-cp39-cp39-macosx_11_0_arm64.whl (177.9 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

pylandau-2.2.1-cp39-cp39-macosx_10_9_x86_64.whl (179.0 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

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

Uploaded CPython 3.8 Windows x86-64

pylandau-2.2.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (440.9 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

pylandau-2.2.1-cp38-cp38-macosx_11_0_arm64.whl (168.4 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

pylandau-2.2.1-cp38-cp38-macosx_10_9_x86_64.whl (169.4 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

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