Accurate and efficient normal distribution statistics.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file normie-0.5.0a0-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: normie-0.5.0a0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 9.8 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.11.9 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36ba9eaa406c15e81fba62abdbcc66791104bdc0da1edb5ca953bebf1defbf48
|
|
| MD5 |
c02867259d294c1d200238aae57a2746
|
|
| BLAKE2b-256 |
6e667ef0ccd1950efb566dffb45c11f544f3f30964029e4f6a620fa61ad3b83a
|
File details
Details for the file normie-0.5.0a0-cp311-cp311-manylinux_2_39_x86_64.whl.
File metadata
- Download URL: normie-0.5.0a0-cp311-cp311-manylinux_2_39_x86_64.whl
- Upload date:
- Size: 15.8 kB
- Tags: CPython 3.11, manylinux: glibc 2.39+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.11.11 Linux/6.8.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
011a606c21c6a634f40f96745aa4efa9d14bb9e8e15b8e6becd9fd7c11ac2c3a
|
|
| MD5 |
1ed246ae7e8edecc23469212cfcf4458
|
|
| BLAKE2b-256 |
78131da5da9994f68600f47456ba983f12310f3e5168eae0f979514b075a6bd8
|
File details
Details for the file normie-0.5.0a0-cp311-cp311-macosx_14_0_arm64.whl.
File metadata
- Download URL: normie-0.5.0a0-cp311-cp311-macosx_14_0_arm64.whl
- Upload date:
- Size: 8.6 kB
- Tags: CPython 3.11, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.11.9 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ca8ee1e4df389a6eb669ae083dcb08f9ba93b34128e1e4d62ff3f7f55530067
|
|
| MD5 |
37e8ac5f0de2b8dc3dea75edd30d9dc0
|
|
| BLAKE2b-256 |
88e2da307223deabe4e353a663c508c445ba8ebb3ec60dd45247902a8e9a2063
|
File details
Details for the file normie-0.5.0a0-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: normie-0.5.0a0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 9.8 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.10.11 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e09eb0c37d3ef29bd54cc4e461b7c479a6cf0b7bf8883c81c9ec850e7a1305de
|
|
| MD5 |
9f8afdc9002cfa5ef72d7f351e8e87fd
|
|
| BLAKE2b-256 |
5205bc416d936f29df7f31d74abd53ff3183ddf6f2d5f791b82214cbcd84a53b
|
File details
Details for the file normie-0.5.0a0-cp310-cp310-manylinux_2_39_x86_64.whl.
File metadata
- Download URL: normie-0.5.0a0-cp310-cp310-manylinux_2_39_x86_64.whl
- Upload date:
- Size: 15.5 kB
- Tags: CPython 3.10, manylinux: glibc 2.39+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.10.16 Linux/6.8.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bfd682a9785307597503843553a77afb12c5480aa7ac826c1d063d1d7cc84b8
|
|
| MD5 |
4129a97b3f37979edf00dae30b21c0ef
|
|
| BLAKE2b-256 |
3ed32bcd668ff009443bfb5fdd18a2cddab0737595b6d015d3a58d882433a32a
|
File details
Details for the file normie-0.5.0a0-cp310-cp310-macosx_14_0_arm64.whl.
File metadata
- Download URL: normie-0.5.0a0-cp310-cp310-macosx_14_0_arm64.whl
- Upload date:
- Size: 8.6 kB
- Tags: CPython 3.10, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.10.11 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
344372a67d0b1d9a991206542c5776b363c6af1cc446563a1d53ecb723ac192a
|
|
| MD5 |
42b7eaa94105e710d15243f386f37cf7
|
|
| BLAKE2b-256 |
4956fb0d9065c181deba0c91fc680f89478ddeebdb87c01b6f493217581fb23f
|
File details
Details for the file normie-0.5.0a0-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: normie-0.5.0a0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 9.8 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.9.13 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
215296c0cd426281b4c9e8c9eb6edfe084a5bebbdb332fef9b83146989797e9b
|
|
| MD5 |
81a73f9edd899aa8212b300f19a1d639
|
|
| BLAKE2b-256 |
d250e1d024fda59e1e1ea1e9381c69172b7def5d0899691d38a55d40a6a32bbc
|
File details
Details for the file normie-0.5.0a0-cp39-cp39-manylinux_2_39_x86_64.whl.
File metadata
- Download URL: normie-0.5.0a0-cp39-cp39-manylinux_2_39_x86_64.whl
- Upload date:
- Size: 15.3 kB
- Tags: CPython 3.9, manylinux: glibc 2.39+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.9.21 Linux/6.8.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ec87487eb550df2dafebabe7fdde053a59f29faec714b0a99357a4896955005
|
|
| MD5 |
931739bfd82d0635561dd4cd3edca5c1
|
|
| BLAKE2b-256 |
1a2b4130a8b17d7abe957b65a739664065a73ab1b69ba1d446e4c111d3af41e2
|
File details
Details for the file normie-0.5.0a0-cp39-cp39-macosx_14_0_arm64.whl.
File metadata
- Download URL: normie-0.5.0a0-cp39-cp39-macosx_14_0_arm64.whl
- Upload date:
- Size: 8.6 kB
- Tags: CPython 3.9, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.9.13 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1c04b15c279c0b0fd8f3fe712ad61b349f720276191855a3be60f07cd824ba2
|
|
| MD5 |
9a816c48d65b8b0d102bc7fa5aa8c123
|
|
| BLAKE2b-256 |
563bfcbfb0935033cb08fefdf6f725e8e4b34bd60048e69f28dbac984c8a37c4
|