Skip to main content

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

Project description

PDistMap

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

Installation

pip install pdistmap

How to use it

Method 1

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pdistmap-0.2.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

pdistmap-0.2.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file pdistmap-0.2.0.tar.gz.

File metadata

  • Download URL: pdistmap-0.2.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.12 Linux/6.8.0-45-generic

File hashes

Hashes for pdistmap-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1c2aad6de5efefc2ff81fd29c4e361e82fb4562dcd4d9abeb12ee2d438fc833c
MD5 ef3542c42b2783fc8a60ae057de6e6ab
BLAKE2b-256 4a4e1f8ea4138a7cb72d4a824714057bc19c28341f771662c27f73ecf2052b99

See more details on using hashes here.

File details

Details for the file pdistmap-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pdistmap-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.12 Linux/6.8.0-45-generic

File hashes

Hashes for pdistmap-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0416c8747ea6c170a4e2eac5b9fe0066b127a60286558a026e30cf4e3b5e0772
MD5 b58f6609baf56cb78808b9022a86c684
BLAKE2b-256 23662fc50e02a6e4a1fc0c51aab04bdfb451c9d93e438982f2ce2b4c4bb528c9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page