Metadata-Version: 2.1
Name: spistats
Version: 0.0.2
Summary: Analyse the performances of sequential private identifiers
Project-URL: Homepage, https://gitlab.inria.fr/jaalmoes/spistats
Project-URL: Bug Tracker, https://gitlab.inria.fr/jaalmoes/spistats/issues
Author-email: Jan Aalmoes <jan.aalmoes@protonmail.com>
License-File: LICENSE
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Requires-Dist: matplotlib
Requires-Dist: numpy
Requires-Dist: scipy
Description-Content-Type: text/markdown

# Installation 
```bash
pip install spistats
```

# Usage
## Collision
```python
import spistats as spi
col = spi.Collision(nbr_dev, nbr_adr, adr_per_dev)
```

## Desynchronization
```python
import spistats.desynchronization as dsync
packet_count = dsync.NumberOfPacketBeforeDsync(0.2,5)
packet_count = dsync.NumberOfPacketBeforeDsync_multi([0.2,0.3],5)
```

## Plotting
```python
import spistats.plot as plt
import spistats.desynchronization as dsync
dsync_count = dsync.NumberOfDsync(0.2,2,10)
plt.cdf(dsync_count)
```

