Skip to main content

pydftools

https://img.shields.io/pypi/v/pydftools.svg https://img.shields.io/travis/steven-murray/pydftools.svg Documentation Status

A pure-python port of the dftools R package.

This package attempts to imitate the dftools package (repo: https://github.com/obreschkow/dftools ) quite closely, while being as Pythonic as possible. Do note that 2D+ models are not yet implemented in this Python port, and neither are non-parametric models. Hopefully they will be along soon.

From dftool’s description:

This package can find the most likely P parameters of a D-dimensional distribution function (DF) generating N objects, where each object is specified by D observables with measurement uncertainties. For instance, if the objects are galaxies, it can fit a MF (P=1), a mass-size distribution (P=2) or the mass-spin-morphology distribution (P=3). Unlike most common fitting approaches, this method accurately accounts for measurement is uncertainties and complex selection functions. A full description of the algorithm can be found in Obreschkow et al. (2017).

In short, clean out Eddington bias from your fits:

https://user-images.githubusercontent.com/1272030/31757852-60cb6ebc-b4dd-11e7-8ce9-32b3232e8f94.png

Features

  • Simple and fast parameter fitting for generative distribution functions

  • Several examples (with astronomical applications in mind)

  • Several plotting routines so that you can go from nothing to a plot in minutes

  • A mockdata() function which can produce data to fit.

  • Support for arbitrary 1D models, several kinds of selection functions, jackknife and bootstrap resampling, Gaussian error estimation and more.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2017-10-25)

  • First release on PyPI.

  • All basic examples working as expected

  • TravisCI, Readthedocs set up.

  • Does not have multi-dimension support, or non-parametric support.

Metadata

Release files for pydftools 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydftools 0.1.0
File Size Uploaded
pydftools-0.1.0.tar.gz 621.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydftools 0.1.0
File Interpreter ABI Platform
pydftools-0.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 655.4 kB

Release files / pydftools-0.1.0.tar.gz

Download URL pydftools-0.1.0.tar.gz
Size 621.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b53e730e5447c68060b708dccc28173e51e318b4601ecc686b3a114018c3cb6d
BLAKE2b-256 checksum
How to use checksums
070096f36c436c6457fd63aa2a2d60b2a90f8846492c656bf6adb122605bc4e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pydftools-0.1.0-py2.py3-none-any.whl

Download URL pydftools-0.1.0-py2.py3-none-any.whl
Size 34.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f317de98c540fd930fc1989be006bb3d167468c74df44702f4fa2fa54caa2c71
BLAKE2b-256 checksum
How to use checksums
2c3f1284119ad685868566a205a7c1c6e439503682d23bcee73b9e25ea654a87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page