Skip to content

Commit

Permalink
Updated README.md with Python code and an image (#1)
Browse files Browse the repository at this point in the history
* Updated README.md with Python code and an image

* Update README.md

Added image

* Updated image path and formatted the code.

---------

Co-authored-by: Rehan Guha <[email protected]>
  • Loading branch information
kaustav7838 and rehanguha authored Sep 18, 2024
1 parent ef879fe commit 5460757
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# PDistMap

This package helps to find the overlap percentage of two probability distributions.
Expand All @@ -10,6 +11,8 @@ pip install pdistmap

## How to use it

### Method 1

```python

from pdistmap.intersection import KDEIntersection
Expand All @@ -21,4 +24,10 @@ 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)

Binary file added artifact/KDE_Plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5460757

Please sign in to comment.