Skip to main content

Distribution fitting tools.

Project description

FitPDF: Distribution fitting tools

PyPI latest release GitHub issues License - MIT

This repository contains software to fit complex distribution models to observational data. This is useful for modelling pulse-energy distributions of radio pulsars or repeating fast radio bursts (FRBs). However, the software can fit any distribution data.

Author

The software is primarily developed and maintained by Fabian Jankowski. For more information, feel free to contact me via: fabian.jankowski at cnrs-orleans.fr.

Paper

The corresponding paper is currently in preparation.

Citation

If you make use of the software, please add a link to this repository and cite our corresponding paper. See above and the CITATION and CITATION.bib files.

Installation

The easiest and recommended way to install the software is via the Python command pip directly from the fitpdf GitHub software repository. For instance, to install the master branch of the code, use the following command:
pip install git+https://github.com/fjankowsk/fitpdf.git@master

This will automatically install all dependencies. Depending on your Python installation, you might want to replace pip with pip3 in the above command.

The latest stable version of the code should also be available on the Python package index PyPI.

Usage

$ fitpdf-fit -h
usage: fitpdf-fit [-h] [--fast] [--labels name [name ...]] [--mean value] [--meanthresh value] [--model {normal,lognormal,normal_lognormal}] [--ccdf] [--log] [--nbin value] [-o]
                  [--title text]
                  files [files ...]

Fit distribution data.

positional arguments:
  files                 Names of files to process. The input files must be produced by the fluence time series option of plot-profilestack.

options:
  -h, --help            show this help message and exit
  --fast                Enable fast processing. This reduces the number of MCMC steps drastically. (default: False)
  --labels name [name ...]
                        The labels to use for each input file. (default: None)
  --mean value          The global mean fluence to divide the histograms by. (default: 1.0)
  --meanthresh value    Ignore fluence data below this mean fluence threshold, i.e. select only data where fluence / mean > meanthresh. (default: -3.0)
  --model {normal,lognormal,normal_lognormal}
                        Use the specified distribution model. (default: normal_lognormal)
  --title text          Set a custom figure title. (default: None)

Output formatting:
  --ccdf                Show the CCDF (cumulative counts) instead of the PDF (differential counts). (default: False)
  --log                 Show histograms in double logarithmic scale. (default: False)
  --nbin value          The number of histogram bins to use. (default: 50)
  -o, --output          Output plots to file rather than to screen. (default: False)

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

fitpdf-0.4.0.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

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

fitpdf-0.4.0-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file fitpdf-0.4.0.tar.gz.

File metadata

  • Download URL: fitpdf-0.4.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for fitpdf-0.4.0.tar.gz
Algorithm Hash digest
SHA256 87f89d1d716f401d03f70882ac4492747f7d8b2ec70071c542313a12b93c6971
MD5 29c846638d7a258c88912bd7cf3143b2
BLAKE2b-256 96c9b54b7bead55b0962c15a98e87b38944dd664ab5984ad77e3df02a6ac65fa

See more details on using hashes here.

File details

Details for the file fitpdf-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: fitpdf-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for fitpdf-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6564ac9f7a22a02052cf83a8fd1ac88c2897f3d607622b56bbfe3b6fea2c2cf9
MD5 0f19e5baff439775bfe8b3aadf310f3a
BLAKE2b-256 7a9017d1b9eb22ce7b9c9fbd24db00a8ccde64f83981fc29610623ed1f76961d

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