Metadata-Version: 2.1
Name: pdistmap
Version: 0.2.0
Summary: This package helps to find the overlap percentage of two probability distributions.
Home-page: https://github.com/rehanguha/pdistmap
License: Apache-2.0
Keywords: probability,distributions,statistics
Author: Rehan Guha
Author-email: rehanguha29@gmail.com
Requires-Python: >=3.9
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Scientific/Engineering :: Mathematics
Classifier: Topic :: Software Development :: Build Tools
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: matplotlib (>=3.9.2)
Requires-Dist: numpy (>=2.0.2)
Requires-Dist: scipy (>=1.13.1)
Project-URL: Repository, https://github.com/rehanguha/pdistmap
Description-Content-Type: text/markdown


# PDistMap

This package helps to find the overlap percentage of two probability distributions.

## Installation

```bash
pip install pdistmap
```

## How to use it

### Method 1

```python

from pdistmap.set import KDEIntersection
import numpy as np

A = np.array([25, 40, 70, 65, 69, 75, 80, 85])
B = np.array([25, 40, 70, 65, 69, 75, 80, 85, 81, 90])

area = KDEIntersection(A,B).intersection_area()
print(area) # Expected output: 0.8752770150023454


KDEIntersection(A,B).intersection_area(plot = True)

```

![Sample Image](artifact/KDE_Plot.png)


