mvhg
A Python C++ extension for sampling hypergeometric and multivariate hypergeometric distributions using the Rejection-Inversion for Log Concave Distributions (RILC) Algorithm [1-2].
Installation
From PyPI
pip install mvhg
From Source
To build and install mvhg locally, clone the repository and install via pip:
git clone https://github.com/spsvihla/mvhg.git
cd mvhg
pip install .
Note: Requires a C++17-compatible compiler, CMake (>= 3.15), and scikit-build-core.
References
- Hörmann, W. A universal generator for discrete log-concave distributions. Computing 52, 89–96 (1994).
- Hörmann, W. & Derflinger, G. Rejection-inversion to generate variates from monotone discrete distributions. ACM Trans. Model. Comput. Simul. 6, 169–184 (1996).
License
Distributed under the MIT License.
Metadata
Release files for mvhg 1.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 |
|---|---|---|---|---|
| mvhg-1.0.1.tar.gz | 355.6 kB | With provenance | Details for mvhg-1.0.1.tar.gz |
Built distributions (wheels)
Total release size: 1.6 MB
Release files / mvhg-1.0.1.tar.gz
| Download URL | mvhg-1.0.1.tar.gz |
|---|---|
| Size | 355.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f23df200bfbca7f45101f1c9a1bc49c43ae55455fb904186834e97851a3ce2b0
|
|
BLAKE2b-256 checksum How to use checksums |
e7e98a3be287400ef35f3b9a84fec54ea2f3d145c2c0ec33f707acfe1e92c882
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / mvhg-1.0.1-cp313-cp313-win_amd64.whl
| Download URL | mvhg-1.0.1-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 86.9 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d8e3364bf0e453495c692438824b32dd15f00b554cfb2c18232bb8d0a4b91160
|
|
BLAKE2b-256 checksum How to use checksums |
dbe20743cda672db1e58e653df375f151d248511831f4fc920dcda41038ea244
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / mvhg-1.0.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | mvhg-1.0.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 101.9 kB |
| Tags | CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
e809e79e928b0d21a65f6c58f6149f56b669dc61c40faccdf236ed6c07c9fc5b
|
|
BLAKE2b-256 checksum How to use checksums |
5f50183c0e3f17a0fb2b41f69f782ee3db3da261a4d32be26931845cc49bab31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / mvhg-1.0.1-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | mvhg-1.0.1-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 69.3 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a6939166c6412ed86e528170401e14c62f1afc556b575403927bd3a0c1424489
|
|
BLAKE2b-256 checksum How to use checksums |
af248ef178911722832c7d04a72d5cc19c9b09d230985c88151dc1909c8820d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / mvhg-1.0.1-cp312-cp312-win_amd64.whl
| Download URL | mvhg-1.0.1-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 86.9 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
2aed93ce71b308cf43c0af30ef45de8073918363e54cfe884fb40c640fcf2e77
|
|
BLAKE2b-256 checksum How to use checksums |
f2ade4990e19d4162f2a967bedca1c2f86b3bfa837e1a611ad8ce7dbba4732f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / mvhg-1.0.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | mvhg-1.0.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 101.9 kB |
| Tags | CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
17126b34912f1b40ee64b5b89b029165bc225bde3ae1b0b1c28326424dc3d17f
|
|
BLAKE2b-256 checksum How to use checksums |
41127d3369f2b21493d4e0b1cbc374265cf2dbac15f3dcbd76e5c1c349ca3b54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / mvhg-1.0.1-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | mvhg-1.0.1-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 69.3 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
d446580fdf505adbe9580fde857360c42b5d69f2249aaf23caae7d18d36c4902
|
|
BLAKE2b-256 checksum How to use checksums |
d3df0a9640143fe33e48c8667cde0fcbdc1b027008bca043ada405c3006e22a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / mvhg-1.0.1-cp311-cp311-win_amd64.whl
| Download URL | mvhg-1.0.1-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 84.3 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
fe4e6a74252b7f8c8d6cdfd1671a0b4322b235f10b4b6ec7afb5541e2c859ace
|
|
BLAKE2b-256 checksum How to use checksums |
399819c52be19292de13fedd1a48a060caf0423cd59c14c2933a97a7997f23e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / mvhg-1.0.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | mvhg-1.0.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 99.8 kB |
| Tags | CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
6936e4ec8fec44247f09478f0ce26bc7ab4a80a7e77d02b7dfbb26f90f694d45
|
|
BLAKE2b-256 checksum How to use checksums |
1ad1d61c0621609586844475871fdccb8ef5fcff86dcdb1af5a9c5e6841b63c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / mvhg-1.0.1-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | mvhg-1.0.1-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 67.8 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
dc1e85b846c860a7b374bd672f8908129eae3b27cec9f3a61f67d814a9004597
|
|
BLAKE2b-256 checksum How to use checksums |
5a43d77055c41ce1532c461d59dae74b0e886ce175fce009a3a8d1be5e3d8b74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / mvhg-1.0.1-cp310-cp310-win_amd64.whl
| Download URL | mvhg-1.0.1-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 83.7 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a00606ae3b4c218f189995149979b386d35833d89c3c265c7355de96b02a0f1c
|
|
BLAKE2b-256 checksum How to use checksums |
9e152b1bd6dd5731701b6061a2c8beb652feeb96de7570392df97a3ed5972c74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / mvhg-1.0.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | mvhg-1.0.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 97.9 kB |
| Tags | CPython 3.10 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
a4118742aed4d653b497b78edd1a417857247e629417116ecc86be0f7d7df8de
|
|
BLAKE2b-256 checksum How to use checksums |
5211b37305a16e13eaceaef989d541570d33d826dd3a0761556c3a39d087be2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / mvhg-1.0.1-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | mvhg-1.0.1-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 66.7 kB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
8258bb04f1f87246c62943c38941ac3fdb0b2ffe74f7bf60a6784a170ac8ba5f
|
|
BLAKE2b-256 checksum How to use checksums |
5ed4e46fc0ccee9cc2acdc511422ac8055533ac8df88196dbaf2cfc6eb42e64b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / mvhg-1.0.1-cp39-cp39-win_amd64.whl
| Download URL | mvhg-1.0.1-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 83.9 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d77a3ffac6fc4c255d954db43e1840bcbd7c77dce01b254f9a8c42f33a76f66e
|
|
BLAKE2b-256 checksum How to use checksums |
02858e92c11a92e8156283249c4619645a1d96fbb6e70a8a6e8a1f45357282dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / mvhg-1.0.1-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | mvhg-1.0.1-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 97.9 kB |
| Tags | CPython 3.9 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
e14e9a960fb5dba2065c320d97a1819571159cdc46622c7c06b3940ba53a2f20
|
|
BLAKE2b-256 checksum How to use checksums |
fd55b311e26546733c1d0177b6ec16ea9f8fb018ed6678a377cb0e0fbb31de52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / mvhg-1.0.1-cp39-cp39-macosx_11_0_arm64.whl
| Download URL | mvhg-1.0.1-cp39-cp39-macosx_11_0_arm64.whl |
|---|---|
| Size | 66.8 kB |
| Tags | CPython 3.9 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
8c5cf9bf5176daf779a0773d904c6a599d58a8feb6c443598b70ace185c3e1f8
|
|
BLAKE2b-256 checksum How to use checksums |
3fc4c7fb3d5d8d5ac455013955008d3c7e7cb9adbefdcef41af4dbd32637b628
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logSecurity for mvhg 1.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.
Full provenance
All 16 files in this release have been uploaded with provenance metadata.
Attestation for mvhg-1.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logA 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.