A flexible method for estimating luminosity functions via Kernel Density Estimation
Project description
kdeLF
kdeLF is an MIT licensed Python implementation of Yuan et al.’s method for estimating luminosity functions via Kernel Density Estimation (KDE). It is a wrapper to compiled fortran code that does the heavy lifting, and is therefore relatively fast. We are open to all questions, feedback, commentary, and suggestions as long as they are constructive. Discussions should always come in the form of git issues.
Documentation
Read the docs at kdelf.readthedocs.io.
Installation and test
Using pip
The recommended way to install the stable version of kdeLF is using pip:
pip install -U kdeLF
We have uploaded several .whl
files to the PyPI web to support as many platforms as possible. If your platforms happens to be an exception, then the pip installation may fail. In this situation, you need to install the Intel fortran Compiler first, and then try the pip installation again. If you have problems installing, please open an issue at GitHub.
From source
You can also install kdeLF after a download from GitHub. Note that this requires a Intel fortran Compiler to be installed in advance.
git clone https://github.com/yuanzunli/kdeLF.git
cd kdeLF
pip install .
Test the installation
To make sure that the installation went alright, you can execute the built-in test program in kdeLF by running the following command:
python3 -m kdeLF.test_kdeLF
Citation
Please cite the following papers if you found this code useful in your research:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for kdeLF-1.0.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b33575988a78c224b65945a7f1c0a92ca0e3047c7e4fb46da4c445532c0fd19 |
|
MD5 | a05e2c7594e74644782e5b9bb591461f |
|
BLAKE2b-256 | dd6b54c92bc4012fe99900f03cbaa6f1239b1d5eecd05596924e8bdab1da2ec6 |
Hashes for kdeLF-1.0.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb983138ec5977cdfa931b92b04e1f6581467a27ad6a5848fa33405d374f9021 |
|
MD5 | d197733242c40121a95afd296c053f7e |
|
BLAKE2b-256 | 85845cc743b6e18f025f2235797f71116931c2ce382e456baacb7a4076d71e3d |