Skip to main content

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:

  1. Yuan, Z., Zhang, X., Wang, J., Cheng, X., & Wang, W. 2022, ApJS, 248, 1 (arXiv, ADS, BibTeX).
  2. Yuan, Z., Jarvis, M. J., & Wang, J. 2020, ApJS, 248, 1 (arXiv, ADS, BibTeX).

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

kdeLF-1.0.7.tar.gz (185.1 kB view hashes)

Uploaded Source

Built Distributions

kdeLF-1.0.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.9 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

kdeLF-1.0.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.9 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ 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