Metadata-Version: 2.1
Name: hfscanstat
Version: 0.0.1
Summary: A Python implementation of the hypothesis-free scan statistic
Home-page: https://github.com/jazon33y/hfscanstat
Author: Jason O'Rawe
Author-email: jazon33y@gmail.com
License: Apache Software License 2.0
Keywords: scan statistics point-process
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: scipy (==1.3.1)
Requires-Dist: numpy (==1.17.4)
Requires-Dist: pandas (==0.25.3)

<!--

#################################################
### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ###
#################################################
# file to edit: 99_index.ipynb
# command to build the docs after a change: nbdev_build_docs

-->

# 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.
<div class="codecell" markdown="1">
<div class="input_area" markdown="1">

```python
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)
```

</div>
<div class="output_area" markdown="1">

            X_i       X_j  i   j         I_H_F            ps
    0  0.525977  0.653637  7  21  7.319199e+14 -6.661338e-16


</div>

</div>


