Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

normie-0.5.0a1-cp313-cp313-win_amd64.whl (9.8 kB view details)

Uploaded CPython 3.13Windows x86-64

normie-0.5.0a1-cp313-cp313-manylinux_2_39_x86_64.whl (16.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.39+ x86-64

normie-0.5.0a1-cp313-cp313-macosx_14_0_arm64.whl (8.7 kB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

normie-0.5.0a1-cp312-cp312-win_amd64.whl (9.8 kB view details)

Uploaded CPython 3.12Windows x86-64

normie-0.5.0a1-cp312-cp312-manylinux_2_39_x86_64.whl (16.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.39+ x86-64

normie-0.5.0a1-cp312-cp312-macosx_14_0_arm64.whl (8.7 kB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

normie-0.5.0a1-cp311-cp311-win_amd64.whl (9.8 kB view details)

Uploaded CPython 3.11Windows x86-64

normie-0.5.0a1-cp311-cp311-manylinux_2_39_x86_64.whl (15.8 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.39+ x86-64

normie-0.5.0a1-cp311-cp311-macosx_14_0_arm64.whl (8.6 kB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

normie-0.5.0a1-cp310-cp310-win_amd64.whl (9.8 kB view details)

Uploaded CPython 3.10Windows x86-64

normie-0.5.0a1-cp310-cp310-manylinux_2_39_x86_64.whl (15.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.39+ x86-64

normie-0.5.0a1-cp310-cp310-macosx_14_0_arm64.whl (8.6 kB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

normie-0.5.0a1-cp39-cp39-win_amd64.whl (9.8 kB view details)

Uploaded CPython 3.9Windows x86-64

normie-0.5.0a1-cp39-cp39-manylinux_2_39_x86_64.whl (15.3 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.39+ x86-64

normie-0.5.0a1-cp39-cp39-macosx_14_0_arm64.whl (8.6 kB view details)

Uploaded CPython 3.9macOS 14.0+ ARM64

File details

Details for the file normie-0.5.0a1-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: normie-0.5.0a1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.1 Windows/2022Server

File hashes

Hashes for normie-0.5.0a1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b91614af0dcd2d2845ec5ede6dd3165c77cc9591ac16812f33c55ce49bcecb13
MD5 d0a04d61ba96352b7768adaadf9c253c
BLAKE2b-256 fd28fbb76e47244e8ea4868bd25d3983b361955603d481984f3cb08624baffaf

See more details on using hashes here.

File details

Details for the file normie-0.5.0a1-cp313-cp313-manylinux_2_39_x86_64.whl.

File metadata

  • Download URL: normie-0.5.0a1-cp313-cp313-manylinux_2_39_x86_64.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: CPython 3.13, manylinux: glibc 2.39+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.1 Linux/6.8.0-1017-azure

File hashes

Hashes for normie-0.5.0a1-cp313-cp313-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 1787d5054aabd053b5f15ae56237620fdcd7b0e5e172ccbb2664f24251850204
MD5 e0f0f73b82138846f674ec79d465c4dd
BLAKE2b-256 306e4436b55b16c50c90b73cbe47fe5dcd942424378bb4e7a11d34b1e66d4637

See more details on using hashes here.

File details

Details for the file normie-0.5.0a1-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for normie-0.5.0a1-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 626d657f79127ed19d80a49337e3219f60d072868fe8e2d05286c4f9c7dfba11
MD5 6a1fe3f6b9f7ed406d04c5ea218fe0da
BLAKE2b-256 5065c05c7ae5a43c50ce31548a0d220c2d3f4cac116cda6be32495362b1f5ad7

See more details on using hashes here.

File details

Details for the file normie-0.5.0a1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: normie-0.5.0a1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.8 Windows/2022Server

File hashes

Hashes for normie-0.5.0a1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b9e97ee119812dba0153dd65c8f23e4bdce3ea1ea3bdadb01b7af891052ac30b
MD5 49681aadfc66fef5c304f515b4c6a72a
BLAKE2b-256 a070779363474606bcd252ef65ef933a9f88221b250f2824bb95dfe2b449bb88

See more details on using hashes here.

File details

Details for the file normie-0.5.0a1-cp312-cp312-manylinux_2_39_x86_64.whl.

File metadata

  • Download URL: normie-0.5.0a1-cp312-cp312-manylinux_2_39_x86_64.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: CPython 3.12, manylinux: glibc 2.39+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.8 Linux/6.8.0-1017-azure

File hashes

Hashes for normie-0.5.0a1-cp312-cp312-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 75882a141b64594aecea584279359fc912143bed772300a3a8a32f1ad75de572
MD5 d99443a1592f64921b72c1c93ead25af
BLAKE2b-256 aa2d1b85a1f6d979f6ee859712f7e289aa1ff84a16b435af0250885fd31a1028

See more details on using hashes here.

File details

Details for the file normie-0.5.0a1-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for normie-0.5.0a1-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 d641fb5ffd20c6ff77995def80fadc87b84977abfb2431be7b7ed0beaf0cf9b5
MD5 7ee36a9205c79a696ca9866ccdb4d17c
BLAKE2b-256 a28e6e624491edf3914597e9c609345175b78ff3c386c3a4f82e5b4ab5af335c

See more details on using hashes here.

File details

Details for the file normie-0.5.0a1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: normie-0.5.0a1-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

Hashes for normie-0.5.0a1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 eb91d8f5990637a6ee1d22831e23790035b10da08a9cde825175c3b57b0fe681
MD5 5a00ebe5b0d19aa6737a269fd47ae667
BLAKE2b-256 b5d443f42dbb51fb8fc7207d94ea4febae8196aed562a335d38c77b77c2f1463

See more details on using hashes here.

File details

Details for the file normie-0.5.0a1-cp311-cp311-manylinux_2_39_x86_64.whl.

File metadata

  • Download URL: normie-0.5.0a1-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

Hashes for normie-0.5.0a1-cp311-cp311-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 43424c88c76e0baa2dca8898018179a938905189c47dede8c93e3acd4a2fb3f4
MD5 ad6a560fde60cc09886af228e54ef208
BLAKE2b-256 06916f5ef4b926c93daab5f2145447106e6b5690c007e1ac808bf0a5ad1c6597

See more details on using hashes here.

File details

Details for the file normie-0.5.0a1-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for normie-0.5.0a1-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 77a3aac763b6a024ffd5d8a0e19018f9c47d2c50d83ea46ade6bdfc1791a62e5
MD5 d285c6cedca22282f3e859b6e046f7eb
BLAKE2b-256 a75cb73e2ada626afffe931e788d8dde6330cca38d85c012163fcf9ed51049a1

See more details on using hashes here.

File details

Details for the file normie-0.5.0a1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: normie-0.5.0a1-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

Hashes for normie-0.5.0a1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6f64051f5140fb5bc1821216fe139925f58ddbe48a15ebf9509c8d880513d8dc
MD5 386036e87662737949706342fd8e76c7
BLAKE2b-256 bea5126034d7bb194267b29ff5026867039a87e6bd123d5024b0a75c6cf57e66

See more details on using hashes here.

File details

Details for the file normie-0.5.0a1-cp310-cp310-manylinux_2_39_x86_64.whl.

File metadata

  • Download URL: normie-0.5.0a1-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

Hashes for normie-0.5.0a1-cp310-cp310-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 ba90dc3d9c45ea69bf8e467ce10ca4abeacc4d54ca476ca6ca3ba57184b32a12
MD5 2317c235cd09f865776d11e6b9669893
BLAKE2b-256 10393778655d3643128a5eb1cc83ec9f05a89c0d8d405beca7ec92309ebb29d1

See more details on using hashes here.

File details

Details for the file normie-0.5.0a1-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for normie-0.5.0a1-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 c3149b3331f651a5e08790479c984f32ddfbeb2ab6aa1d80f2b8547a4df78132
MD5 52fd049d21e26b94a21ebd2063bdb2a3
BLAKE2b-256 e228b733731ac3bad8712fbedc4541b653a0d4d0ca79708aca22a7a5fd15acd7

See more details on using hashes here.

File details

Details for the file normie-0.5.0a1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: normie-0.5.0a1-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

Hashes for normie-0.5.0a1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6a873e54519ff97f4270401589fbf178a2a1f66e80262c649749653e537180b4
MD5 070a9b2ffaf3437068da76107ee22b8c
BLAKE2b-256 9660f16a54d4c9522dc6ae72d473135acab9e1b72eaf73414074ef02801ed397

See more details on using hashes here.

File details

Details for the file normie-0.5.0a1-cp39-cp39-manylinux_2_39_x86_64.whl.

File metadata

  • Download URL: normie-0.5.0a1-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

Hashes for normie-0.5.0a1-cp39-cp39-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 b041aaa2eede489c7cdf2092215392f710cc0076ee554b29a0dc306b6336cd06
MD5 b53ebd9b84d3b891dd653b3474fec687
BLAKE2b-256 2a6f5fad3968e097b3727dbf4c21cbdaaef65b81cbe34735b8077acc468b03ee

See more details on using hashes here.

File details

Details for the file normie-0.5.0a1-cp39-cp39-macosx_14_0_arm64.whl.

File metadata

  • Download URL: normie-0.5.0a1-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

Hashes for normie-0.5.0a1-cp39-cp39-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 2a844c74ee2e4f72ae3dfa378e233eab074522a0560aa72bba761f129be297fa
MD5 c07bc1ad2d46ed1a48c2896e63351a50
BLAKE2b-256 21809d24abc8263a6cd3528bbf4ca9d8c11cf2a178f43fef5f3bda197df39c76

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page