{ "info": { "author": "Takaaki AOKI", "author_email": "aoki.takaaki@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Other Environment", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.4" ], "description": "=======================\npeakdetect_delta\n=======================\n\nFind positive spike-like peaks from 1-D array.\n\nexample\n=========\n\n.. code-block:: python\n\n from peakdetect_delta import peakdetect, peakdetect_simpleedge\n\n # peak are represented as a tuple ((pvalue, pidx), (sidx, eidx))\n # pvalue: value at pidx\n # pidx: index of the peak\n # sidx: index where y[sidx+1] - y[sidx] > rdelta\n # eidx: index where y[eidx] - y[eidx-1] < fdelta \n # so, y[sidx:eidx] takes the detected peak\n\n # examples of peakdetect_simpleedge\n # case 1.1\n s = [0, 0, 1.5, 2, 0, 0]\n assert peakdetect_simpleedge(s, rdelta=1, fdelta=-1) == [((2, 3), (1, 5))]\n\n # case 1.2\n s = [0, 2, 0, -2, 0, -2]\n assert peakdetect_simpleedge(s, rdelta=1, fdelta=1) == [((2, 1), (0, 3)),\n ((0, 4), (3, 6))]\n\n # example of peakdetect\n s= [0, 3, 0, 2, 0, 0, -1, 1, -2, -1]\n # same as peakdetect_simpleedge\n assert peakdetect(s, rdelta=1, fdelta=-1, minimumspace=-1)\n == [((3, 1), (0, 3)), ((2, 3), (2, 5)), ((1, 7), (6, 9))]\n # first 2 peaks are merged\n assert peakdetect(s, rdelta=1, fdelta=-1, minimumspace=0)\n == [((3, 1), (0, 5)), ((1, 7), (6, 9))]\n peakdetect(s, rdelta=1, fdelta=-1, minimumspace=2)\n == [((3, 1), (0, 9))]", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/takaakiaoki/peakdetect_delta", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/takaakiaoki/peakdetect_delta", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "peakdetect_delta", "package_url": "https://pypi.org/project/peakdetect_delta/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/peakdetect_delta/", "project_urls": { "Download": "https://github.com/takaakiaoki/peakdetect_delta", "Homepage": "https://github.com/takaakiaoki/peakdetect_delta" }, "release_url": "https://pypi.org/project/peakdetect_delta/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "find positive splike-like peaks, using Delta_raise and Delta_fall thresholds.", "version": "0.1.0" }, "last_serial": 1726390, "releases": { "0.1.0": [] }, "urls": [] }