distl

Simplified and Condensed Distributions

https://github.com/kecnry/distl

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (18.4%) to scientific vocabulary

Keywords

distributions numpy python
Last synced: 6 months ago · JSON representation

Repository

Simplified and Condensed Distributions

Basic Info
Statistics
  • Stars: 5
  • Watchers: 4
  • Forks: 2
  • Open Issues: 3
  • Releases: 4
Topics
distributions numpy python
Created about 7 years ago · Last pushed over 1 year ago
Metadata Files
Readme License

README.md

distl logo

simplified and condensed distributions

  pip install distl

badge badge badge badge badge badge badge

IMPORTANT: distl is currently still under development, is not yet well-tested, and is subject to significant API changes. Please keep posted until an official release is ready.

Read the latest documentation on readthedocs or browse the current documentation.

distl provides a python object-interface on top of several distribution (random variable) functions in scipy.stats and allows for:

  • serialization of distributions (so they can be saved to disk or pickled and sent to processors within MPI)
  • support for units and wrapping
  • conversion between different types of distributions
  • math between distributions, handling covariances from multivariate distributions wherever possible
  • plotting convenience functions

Getting Started

Dependencies

distl requires the following dependencies:

  • python 2.7+ or 3.6+
  • scipy 1.0+
  • numpy 1.10+

and the following optional dependencies:

  • matplotlib 2.2+ (required for plotting distributions)
  • corner (required for plotting multivariate distributions and distribution collections)
  • astropy 1.0+ (required for units support)
  • dill (required for saving/loading Function distributions)

You can see the Travis testing matrix for details on what exact versions have been tested and ensured to work. If you run into any issues with dependencies, please submit an issue.

Installation

To install the latest release via pip:

sh pip install distl

To install from source locally for a single user:

sh python setup.py build python setup.py install --user

Or to install globally:

sh python setup.py build sudo python setup.py install

Import

Now from within python we can import the distl package:

py import distl

and then create, sample from, and plot our first distribution:

py g = distl.gaussian(10, 1) print(g.sample()) print(g.sample(10)) g.plot(show=True)

Documentation and API Docs

Read the latest documentation on readthedocs or browse the current documentation.

Contributors

Kyle Conroy

Contributions are welcome! Feel free to file an issue or fork and create a pull-request.

Owner

  • Name: Kyle Conroy
  • Login: kecnry
  • Kind: user
  • Location: Baltimore, MD
  • Company: Space Telescope Science Institute

GitHub Events

Total
  • Push event: 1
  • Pull request review event: 1
  • Pull request event: 2
  • Fork event: 1
Last Year
  • Push event: 1
  • Pull request review event: 1
  • Pull request event: 2
  • Fork event: 1

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 107
  • Total Committers: 1
  • Avg Commits per committer: 107.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Kyle Conroy k****y@g****m 107

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 12
  • Average time to close issues: N/A
  • Average time to close pull requests: 9 minutes
  • Total issue authors: 0
  • Total pull request authors: 3
  • Average comments per issue: 0
  • Average comments per pull request: 0.17
  • Merged pull requests: 9
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 4
  • Average time to close issues: N/A
  • Average time to close pull requests: about 1 hour
  • Issue authors: 0
  • Pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 0.25
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • kecnry (8)
  • giammarc (2)
  • aprsa (2)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 52 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 5
  • Total maintainers: 1
pypi.org: distl

Simple Distributions: math operations, serializing, covariances

  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 52 Last month
Rankings
Dependent packages count: 10.0%
Stargazers count: 21.5%
Dependent repos count: 21.7%
Average: 24.3%
Forks count: 29.8%
Downloads: 38.4%
Maintainers (1)
Last synced: 6 months ago

Dependencies

docs/requirements.txt pypi
  • mkdocs >=1.0.0<2.0
setup.py pypi
  • numpy >=1.10
  • scipy >=1.0