rnd-pcw-poly


Namernd-pcw-poly JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://github.com/SV-97/rnd-pcw-poly
SummaryGenerate random piecewise polynomials
upload_time2023-10-09 16:33:28
maintainer
docs_urlNone
authorStefan Volz
requires_python>=3.10,<4.0
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # rnd-pcw-poly

Generates random piecewise polynomial functions (for example for testing CPD-algorithms).

## Example

```python
import numpy as np
import matplotlib.pyplot as plt
from rnd_pcw_poly import rnd_pcw_poly

# generate a piecewise polynomial function with 5 "jumps" / 6 segments;
# no more than 200 degrees of freedom in total and locally no more than
# 6 degrees of freedom. 
p = rnd_pcw_poly(5, 200, 6)

# plot it
xs = np.linspace(0,1,5000)
ys = p(xs)
plt.scatter(xs, ys)
plt.show()
```

The algorithm has seperately seedable and idependent core characteristics like jump locations, dof distribution, realization etc.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/SV-97/rnd-pcw-poly",
    "name": "rnd-pcw-poly",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Stefan Volz",
    "author_email": "volzstefan97@googlemail.com",
    "download_url": "https://files.pythonhosted.org/packages/55/84/b49a9952b4144ed79eedb8d48332a72b91309ff6fa500c7c981c23ff5ea9/rnd_pcw_poly-0.2.0.tar.gz",
    "platform": null,
    "description": "# rnd-pcw-poly\n\nGenerates random piecewise polynomial functions (for example for testing CPD-algorithms).\n\n## Example\n\n```python\nimport numpy as np\nimport matplotlib.pyplot as plt\nfrom rnd_pcw_poly import rnd_pcw_poly\n\n# generate a piecewise polynomial function with 5 \"jumps\" / 6 segments;\n# no more than 200 degrees of freedom in total and locally no more than\n# 6 degrees of freedom. \np = rnd_pcw_poly(5, 200, 6)\n\n# plot it\nxs = np.linspace(0,1,5000)\nys = p(xs)\nplt.scatter(xs, ys)\nplt.show()\n```\n\nThe algorithm has seperately seedable and idependent core characteristics like jump locations, dof distribution, realization etc.\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Generate random piecewise polynomials",
    "version": "0.2.0",
    "project_urls": {
        "Homepage": "https://github.com/SV-97/rnd-pcw-poly",
        "Repository": "https://github.com/SV-97/rnd-pcw-poly"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "18261276acbbdc92359cbc74f86686596ef10903e49e5d0cbd797ed0a26fa6e0",
                "md5": "0239dd50a4baf815c716ad95bd73a176",
                "sha256": "dcf810c39ec299d06205e4bfb714b23bdee7305f5bfacae649604e52ba03145e"
            },
            "downloads": -1,
            "filename": "rnd_pcw_poly-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0239dd50a4baf815c716ad95bd73a176",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10,<4.0",
            "size": 5090,
            "upload_time": "2023-10-09T16:33:26",
            "upload_time_iso_8601": "2023-10-09T16:33:26.677764Z",
            "url": "https://files.pythonhosted.org/packages/18/26/1276acbbdc92359cbc74f86686596ef10903e49e5d0cbd797ed0a26fa6e0/rnd_pcw_poly-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5584b49a9952b4144ed79eedb8d48332a72b91309ff6fa500c7c981c23ff5ea9",
                "md5": "a0849ed3e6775fae8f271b51bfc760c8",
                "sha256": "d1c895830c60a63ca87a946c34a2340bdfe45534f1d9557d0dad6b9d5b1eb645"
            },
            "downloads": -1,
            "filename": "rnd_pcw_poly-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "a0849ed3e6775fae8f271b51bfc760c8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10,<4.0",
            "size": 4320,
            "upload_time": "2023-10-09T16:33:28",
            "upload_time_iso_8601": "2023-10-09T16:33:28.022222Z",
            "url": "https://files.pythonhosted.org/packages/55/84/b49a9952b4144ed79eedb8d48332a72b91309ff6fa500c7c981c23ff5ea9/rnd_pcw_poly-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-09 16:33:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "SV-97",
    "github_project": "rnd-pcw-poly",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "rnd-pcw-poly"
}
        
Elapsed time: 0.11718s