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
Repository
Simplified and Condensed Distributions
Basic Info
- Host: GitHub
- Owner: kecnry
- License: gpl-3.0
- Language: Python
- Default Branch: master
- Homepage: https://distl.readthedocs.io
- Size: 11.8 MB
Statistics
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 3
- Releases: 4
Topics
Metadata Files
README.md
simplified and condensed distributions
pip install distl
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
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
- Website: keconroy.com
- Repositories: 9
- Profile: https://github.com/kecnry
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
Top Committers
| Name | 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
- Homepage: https://www.github.com/kecnry/distl
- Documentation: https://distl.readthedocs.io/
- License: GNU General Public License v3 (GPLv3)
-
Latest release: 0.3.1
published almost 5 years ago
Rankings
Maintainers (1)
Dependencies
- mkdocs >=1.0.0<2.0
- numpy >=1.10
- scipy >=1.0
