pystable
Python wrapper for the libstable C library.
Example
To fit with ML estimation:
import pystable
init_fit = {'alpha': 2, 'beta': 0, 'sigma': 1, 'mu': 0,
'parameterization': 1}
dist = pystable.create(init_fit['alpha'], init_fit['beta'],
init_fit['sigma'], init_fit['mu'],
init_fit['parameterization'])
pystable.fit(dist, data, len(data))
fit_params = [dist.contents.alpha, dist.contents.beta,
dist.contents.sigma, dist.contents.mu_0, dist.contents.mu_1]
Setup
Dependencies
Install the GNU Scientific Library (GSL).
Arch Linux:
$ yay gsl
Mac:
$ brew install gsl
Ubuntu:
$ sudo apt install gsl-bin libgsl0-dev
Build libstable
$ cd libstable
$ make
or
$ poetry build
TODO
-
import ctypes as ct - create lib structure
- create example file utilizing pystable lib
- typings
- handle errors
- handle NULL pointer errors
- handle
err
-
stable_checkparams- impl
- test
- example
- handle error
- test error
-
stable_create- impl
- test
- example
-
stable_cdf- impl
- test
- example
-
stable_pdf- impl
- test
- example
-
stable_fit- impl
- test
- example
-
stable_q- impl
- test
- example
-
stable_rnd- impl
- test
- example
Metadata
Release files for pystable 0.2.3
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 |
|---|---|---|---|---|
| pystable-0.2.3.tar.gz | 399.1 kB | Without provenance | Details for pystable-0.2.3.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pystable-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for pystable-0.2.3-py3-none-any.whl |
| pystable-0.2.3-cp39-cp39-manylinux_2_33_x86_64.whl | CPython 3.9 | CPython 3.9 | Linux glibc 2.33+ x86-64 | Details for pystable-0.2.3-cp39-cp39-manylinux_2_33_x86_64.whl |
Total release size: 1.2 MB
Release files / pystable-0.2.3.tar.gz
| Download URL | pystable-0.2.3.tar.gz |
|---|---|
| Size | 399.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7dd5fd4fb0d1129f293d7de0b2489c4a53730f477c7d1efef04129973f27f21c
|
|
BLAKE2b-256 checksum How to use checksums |
cbf8fe25aa5197216a2ebec5ce7b74a0b692fb221226e99a99a6da20100b9286
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.9.6 Linux/5.12.14-arch1-1
|
Release files / pystable-0.2.3-py3-none-any.whl
| Download URL | pystable-0.2.3-py3-none-any.whl |
|---|---|
| Size | 399.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cef111f537fe0b65c950e7f0a985bffd78da61c445b2fbb92f9eed974f1422e6
|
|
BLAKE2b-256 checksum How to use checksums |
1c8d958a5f8ebb4a44454a2ce08b723948c60f0c375c6919ba6c80f9955c36d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.9.6 Linux/5.12.14-arch1-1
|
Release files / pystable-0.2.3-cp39-cp39-manylinux_2_33_x86_64.whl
| Download URL | pystable-0.2.3-cp39-cp39-manylinux_2_33_x86_64.whl |
|---|---|
| Size | 399.7 kB |
| Tags | CPython 3.9 Linux glibc 2.33+ x86-64 |
|
SHA-256 checksum How to use checksums |
e1a6371eb1b54581e8999c05239ebda32678118aaab53b47bc28765e959ea95a
|
|
BLAKE2b-256 checksum How to use checksums |
2aa8c7d6fbb32d9b49fe32f4147f84b8a6bc5ef5ea2b551994737751e3771998
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.9.6 Linux/5.12.14-arch1-1
|
Security for pystable 0.2.3
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.