A Python implementation of the hypothesis-free scan statistic
Project description
hfscanstat
A python implementation of the hypothesis-free multiple scan statistic with variable window for detecting clusters in point processes (L. Cucala. A hypothesis-free multiple scan statistic with variable window. Biom. J., 50 (2008), pp. 299-310).
Install
pip install hfscanstat
How to use
Using example data from Knox, G. (1959). Secular pattern of congenital oesophageal atresia. British Journal of Preventive Social Medecine 13, 222–226.
knox_1959 = [170, 316, 445, 468, 938, 1034, 1128, 1233, 1248, 1249,
1252, 1259, 1267, 1305, 1385, 1388, 1390, 1446, 1454,
1458, 1461, 1491, 1583, 1699, 1702, 1787, 1924, 1974,
2049, 2051, 2067, 2075, 2108, 2151, 2174, 2191]
clusters = get_clusters(knox_1959)
print(clusters)
X_i X_j i j I_H_F ps
0 0.525977 0.653637 7 21 7.319199e+14 -6.661338e-16
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
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
File details
Details for the file hfscanstat-0.0.1.tar.gz.
File metadata
- Download URL: hfscanstat-0.0.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0793f6f4800b5a3b1f3dfd5d718ede8722068c289120d52af217c343f98b1355
|
|
| MD5 |
57908b6e2646a1414fab25ede56b4a15
|
|
| BLAKE2b-256 |
b172bc73efae0edef6261487e53b07653a24d75714040a6eaab6e8d156b1581a
|
File details
Details for the file hfscanstat-0.0.1-py3-none-any.whl.
File metadata
- Download URL: hfscanstat-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4349adf46cc8c9c27f32ff65a1729ead191c60813458d5e6a0ac12e2bc2e26bf
|
|
| MD5 |
0a7bd53b820174a99658d1e8df0f0d44
|
|
| BLAKE2b-256 |
ff34b37c7a855e4967e27aaac093cce599886213afcf988f3f6da819b95b4fa8
|