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 details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

Details for the file kdeLF-1.0.7.tar.gz.

File metadata

  • Download URL: kdeLF-1.0.7.tar.gz
  • Upload date:
  • Size: 185.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for kdeLF-1.0.7.tar.gz
Algorithm Hash digest
SHA256 0503f6595e3a2426338f926f20455fe598ab89885e73b8061595f5e1f8c1191a
MD5 055daf9e1d756881b2891f2225da0a4d
BLAKE2b-256 c9392818d86c4f07f3bb6e6bc88d7a7c5433ae9ef7aa36fd40b73c26e40f18e4

See more details on using hashes here.

File details

Details for the file kdeLF-1.0.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

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

See more details on using hashes here.

File details

Details for the file kdeLF-1.0.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

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

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page