pdistmap


Namepdistmap JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://github.com/rehanguha/pdistmap
SummaryThis package helps to find the overlap percentage of two probability distributions.
upload_time2024-10-16 16:47:35
maintainerNone
docs_urlNone
authorRehan Guha
requires_python>=3.9
licenseApache-2.0
keywords probability distributions statistics
VCS
bugtrack_url
requirements contourpy cycler fonttools importlib-resources kiwisolver matplotlib numpy packaging pillow pyparsing python-dateutil scipy six zipp
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# 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)


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/rehanguha/pdistmap",
    "name": "pdistmap",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "probability, distributions, statistics",
    "author": "Rehan Guha",
    "author_email": "rehanguha29@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/4a/4e/1f8ea4138a7cb72d4a824714057bc19c28341f771662c27f73ecf2052b99/pdistmap-0.2.0.tar.gz",
    "platform": null,
    "description": "\n# PDistMap\n\nThis package helps to find the overlap percentage of two probability distributions.\n\n## Installation\n\n```bash\npip install pdistmap\n```\n\n## How to use it\n\n### Method 1\n\n```python\n\nfrom pdistmap.set import KDEIntersection\nimport numpy as np\n\nA = np.array([25, 40, 70, 65, 69, 75, 80, 85])\nB = np.array([25, 40, 70, 65, 69, 75, 80, 85, 81, 90])\n\narea = KDEIntersection(A,B).intersection_area()\nprint(area) # Expected output: 0.8752770150023454\n\n\nKDEIntersection(A,B).intersection_area(plot = True)\n\n```\n\n![Sample Image](artifact/KDE_Plot.png)\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "This package helps to find the overlap percentage of two probability distributions.",
    "version": "0.2.0",
    "project_urls": {
        "Homepage": "https://github.com/rehanguha/pdistmap",
        "Repository": "https://github.com/rehanguha/pdistmap"
    },
    "split_keywords": [
        "probability",
        " distributions",
        " statistics"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "23662fc50e02a6e4a1fc0c51aab04bdfb451c9d93e438982f2ce2b4c4bb528c9",
                "md5": "b58f6609baf56cb78808b9022a86c684",
                "sha256": "0416c8747ea6c170a4e2eac5b9fe0066b127a60286558a026e30cf4e3b5e0772"
            },
            "downloads": -1,
            "filename": "pdistmap-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b58f6609baf56cb78808b9022a86c684",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 9272,
            "upload_time": "2024-10-16T16:47:33",
            "upload_time_iso_8601": "2024-10-16T16:47:33.340103Z",
            "url": "https://files.pythonhosted.org/packages/23/66/2fc50e02a6e4a1fc0c51aab04bdfb451c9d93e438982f2ce2b4c4bb528c9/pdistmap-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4a4e1f8ea4138a7cb72d4a824714057bc19c28341f771662c27f73ecf2052b99",
                "md5": "ef3542c42b2783fc8a60ae057de6e6ab",
                "sha256": "1c2aad6de5efefc2ff81fd29c4e361e82fb4562dcd4d9abeb12ee2d438fc833c"
            },
            "downloads": -1,
            "filename": "pdistmap-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "ef3542c42b2783fc8a60ae057de6e6ab",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 8489,
            "upload_time": "2024-10-16T16:47:35",
            "upload_time_iso_8601": "2024-10-16T16:47:35.967132Z",
            "url": "https://files.pythonhosted.org/packages/4a/4e/1f8ea4138a7cb72d4a824714057bc19c28341f771662c27f73ecf2052b99/pdistmap-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-16 16:47:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rehanguha",
    "github_project": "pdistmap",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "contourpy",
            "specs": [
                [
                    "==",
                    "1.3.0"
                ]
            ]
        },
        {
            "name": "cycler",
            "specs": [
                [
                    "==",
                    "0.12.1"
                ]
            ]
        },
        {
            "name": "fonttools",
            "specs": [
                [
                    "==",
                    "4.53.1"
                ]
            ]
        },
        {
            "name": "importlib-resources",
            "specs": [
                [
                    "==",
                    "6.4.5"
                ]
            ]
        },
        {
            "name": "kiwisolver",
            "specs": [
                [
                    "==",
                    "1.4.7"
                ]
            ]
        },
        {
            "name": "matplotlib",
            "specs": [
                [
                    "==",
                    "3.9.2"
                ]
            ]
        },
        {
            "name": "numpy",
            "specs": [
                [
                    "==",
                    "2.0.2"
                ]
            ]
        },
        {
            "name": "packaging",
            "specs": [
                [
                    "==",
                    "24.1"
                ]
            ]
        },
        {
            "name": "pillow",
            "specs": [
                [
                    "==",
                    "10.4.0"
                ]
            ]
        },
        {
            "name": "pyparsing",
            "specs": [
                [
                    "==",
                    "3.1.4"
                ]
            ]
        },
        {
            "name": "python-dateutil",
            "specs": [
                [
                    "==",
                    "2.9.0.post0"
                ]
            ]
        },
        {
            "name": "scipy",
            "specs": [
                [
                    "==",
                    "1.13.1"
                ]
            ]
        },
        {
            "name": "six",
            "specs": [
                [
                    "==",
                    "1.16.0"
                ]
            ]
        },
        {
            "name": "zipp",
            "specs": [
                [
                    "==",
                    "3.20.2"
                ]
            ]
        }
    ],
    "lcname": "pdistmap"
}
        
Elapsed time: 0.84568s