Simsam: Simplex Sampling Methods
This small package implements methods for sampling from a unit simplex, a problem that often crops up in a data analysis context.
Usage
There is only a single sampling strategy that results in uniform samples from the unit simplex:
from simsam import kraemer_sampling
# Sample 1,000 points from the 10-dimensional unit simplex.
dim = 10
N = 1000
samples = kraemer_sampling(dim, N)
For comparison purposes, there is also a naive sampling procedure, which does not result in uniform samples.
from simsam import naive_sampling
# Sample 1,000 points from the 10-dimensional unit simplex. Notice that
# the samples will be biased.
dim = 10
N = 1000
samples = naive_sampling(dim, N)
Metadata
Release files for simsam 0.1.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 |
|---|---|---|---|---|
| Simsam-0.1.3.tar.gz | 3.4 kB | Without provenance | Details for Simsam-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Simsam-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for Simsam-0.1.3-py3-none-any.whl |
Total release size: 7.5 kB
Release files / Simsam-0.1.3.tar.gz
| Download URL | Simsam-0.1.3.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27945d537a0e64b8aa4a76f0adc2dd00daa964331c9df541d8a6aa130bd91f69
|
|
BLAKE2b-256 checksum How to use checksums |
0605faf134f7d7769eee7c872a1cdb8a20b56733e6417d2902d537ae03e0200c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.6 Darwin/19.6.0
|
Release files / Simsam-0.1.3-py3-none-any.whl
| Download URL | Simsam-0.1.3-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e95814a5fc3987075aac67b404b7fbfeb4131c758056c0e76ea0b68317339675
|
|
BLAKE2b-256 checksum How to use checksums |
9e58e2fb4dce347d813349a92854ba353a7908859158b08498ddc2a41dbb1bfb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.6 Darwin/19.6.0
|
Security for simsam 0.1.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.