LogUniform
A simple implementation of the log-uniform and modified log-uniform distributions.
How to use
Install it from pip (LogUniform only depends on numpy)
pip install LogUniform
and it’s ready to use from Python
import loguniform
LogUniform comes with two simple classes, LogUniform and ModifiedLogUniform. They are intended to mimic the API of scipy.stats (actually, the log-uniform distribution is already implemented in scipy.stats.reciprocal; the two implementations are compatible).
from loguniform import LogUniform, ModifiedLogUniform
d1 = LogUniform(a=1, b=1000)
d2 = ModifiedLogUniform(knee=1, b=1000)
both distributions d1 and d2 now have methods
pdf(x) and logpdf(x): the probability density function and its logarithm
cdf(x): cumulative density function
ppf(x): percent point function (inverse of cdf)
rvs(size): draw random samples from the distribution
support(): support of the distribution
License
Copyright 2021 João Faria.
LogUniform is free software made available under the MIT License. For details see the LICENSE file.
Metadata
Release files for LogUniform 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| LogUniform-2.0.1.tar.gz | 5.1 kB | Without provenance | Details for LogUniform-2.0.1.tar.gz |
Release files / LogUniform-2.0.1.tar.gz
| Download URL | LogUniform-2.0.1.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
90bd195d649c1023a4677e4993d486281826e3a546c3fbc99fe7153cc4a483cc
|
|
BLAKE2b-256 checksum How to use checksums |
2a866a801397666e6b23c17e7b2d3aa4e4d271dfc204974def9d76eb4f69dc0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Security for LogUniform 2.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.