A package for group testing against symmetric distributions.
Project description
symgt
A package for group testing against symmetric distributions. Python 3.
pip install symgt
For example, to compute an optimal partition for a symmetric distribution...
import numpy as np
from symgt import models, algorithms, utils
m = models.ExchangeableModel(10, np.array([0.5, 0.2, 0.0, 0.0, 0.0, 0.0, 0.2, 0.1, 0.0, 0.0, 0.0]))
q = np.exp(m.log_q()) # the representation q
multfn, cost = algorithms.symmetric_multfn(q) # cost is 6
intpart = utils.intpart_from_multfn(multfn) # intpart is [10]
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 Distribution
symgt-0.0.5.tar.gz
(1.2 MB
view details)
Built Distribution
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
symgt-0.0.5-py3-none-any.whl
(8.5 kB
view details)
File details
Details for the file symgt-0.0.5.tar.gz.
File metadata
- Download URL: symgt-0.0.5.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
086083063243e5bdff0f0a8cb4bd61ced073d3b8bb34e99b86b49a51131d3646
|
|
| MD5 |
06233916f5227711ad945b7215e12613
|
|
| BLAKE2b-256 |
3f3128a2c4af4580f76b7809fd9639ee41d541656e5cfb153270b1b967a211fe
|
File details
Details for the file symgt-0.0.5-py3-none-any.whl.
File metadata
- Download URL: symgt-0.0.5-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56eed5f247a16661bbeea116968ca3d1452f165a5b5ea0b1ce95251d909e2070
|
|
| MD5 |
3423ea9afe41747d277073ace78dc60e
|
|
| BLAKE2b-256 |
c376dc016145d152a5730273ad4c82f2800f18b3992df77a95584e37fca6b44f
|