normie - Python package for normal distribution functions
Examples of use
>>> from normie import cdf, invcdf
>>> cdf(2.0) # doctest: +ELLIPSIS
0.97724986...
>>> invcdf(0.5)
0.0
How it works.
The package uses C code, to be found in src/normie_impl.c
The code uses a built-in function for the cumulative distribution function, and a polynomial approximation for the inverse.
Repository
normie/ Python code src/ C code tests/ Test code tools/ Used by poetry for build/test scripts build.py Defines how the package including C code is built LICENSE MIT License pyproject.toml Poetry is used for building, testing, dev environment... README.md This documentation
Compatibility functions
To make it easier to port code to Python or to make interoperable code, there are functions which are designed to be compatible with Excel functions for quantiles of the normal distribution.
>>> from normie.compat.excel import NORM_INV
>>> NORM_INV(0.23, 1, 0.5) # doctest: +ELLIPSIS
0.6305765...
Note that we don't make any effort to reproduce the exact value given by Excel. In particular, we are not trying to match any bugs (if there are any). We simply define the function NORM_INV to mean exactly what NORM.INV does in Excel, then provide our best possible evaluation. This means that you can translate code easily, without having to remember the argument types and conventions for NORM.INV and translate them to the ones used in normie.
Metadata
Release files for normie 0.4.0
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 |
|---|---|---|---|---|
| normie-0.4.0.tar.gz | 4.7 kB | Without provenance | Details for normie-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| normie-0.4.0-cp313-cp313-win_amd64.whl | CPython 3.13 | CPython 3.13 | Windows x86-64 | Details for normie-0.4.0-cp313-cp313-win_amd64.whl |
Total release size: 14.4 kB
Release files / normie-0.4.0.tar.gz
| Download URL | normie-0.4.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b52c7121743a0eb934ede768b298424137605757b3e6bc07c65e37bd2f2af4c5
|
|
BLAKE2b-256 checksum How to use checksums |
aa86da873e0b30147f80ad9daf2f00efd23494fe2741466eaed8730ed3f209a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.0 CPython/3.13.1 Windows/10
|
Release files / normie-0.4.0-cp313-cp313-win_amd64.whl
| Download URL | normie-0.4.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 9.8 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
810a369181ffc531e196cf68b40153554ece9e88d604bb31458433dc232686c2
|
|
BLAKE2b-256 checksum How to use checksums |
f96c18c645449f984acb74c94ea11c8bde6ecc6638bb4423bfb54284b5eece37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.0 CPython/3.13.1 Windows/10
|
Security for normie 0.4.0
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.