{ "info": { "author": "Elena Sharova", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Topic :: Scientific/Engineering :: Mathematics" ], "description": "===============\nsamplepy 1.0.11\n===============\n\n**samplepy** implements three sampling methods for univariate distributions. The package includes:\n\n- Importance sampling: **samplepy.Importance**\n- Rejection sampling: **samplepy.Rejection**\n- Metropolis-Hastings sampling: **samplepy.MH**\n\nExamples:\n=========\n\n.. code:: python\n\n from samplepy import Rejection\n import matplotlib.pyplot as plt\n import numpy as np\n\n \"\"\"\n Rejection sampling example from 2 different functions\n \"\"\"\n # define a unimodal function to sample under\n f = lambda x: 2.0*np.exp(-2.0*x)\n rej = Rejection(f, [0.01, 3.0]) # instantiate Rejection sampling with f and interval\n sample = rej.sample(10000, 1) # create a sample of 10K points\n\n x = np.arange(0.01, 3.0, (3.0-0.01)/10000)\n fx = f(x)\n\n figure, axis = plt.subplots()\n axis.hist(sample, normed=1, bins=40)\n axis2 = axis.twinx()\n axis2.plot(x, fx, 'g', label=\"f(x)=2.0*exp(-2*x)\")\n plt.legend(loc=1)\n plt.show()\n\nMore examples and package documentation can be found at \n\nInstallation\n===============\n\n::\n\n pip install samplepy", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/elena-sharova/samplepy", "keywords": "sampling rejection importance Metropolis-Hastings", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "samplepy", "package_url": "https://pypi.org/project/samplepy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/samplepy/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/elena-sharova/samplepy" }, "release_url": "https://pypi.org/project/samplepy/1.0.11/", "requires_dist": null, "requires_python": null, "summary": "sampling from univariate distributions", "version": "1.0.11" }, "last_serial": 2377455, "releases": { "1.0.10": [ { "comment_text": "", "digests": { "md5": "7ba46e8e079eab7f4b42b75040c06f6f", "sha256": "4b322da4516c79c9d59228533843134c0d5ca18eb27dccda447134ac6a0928eb" }, "downloads": -1, "filename": "samplepy-1.0.10.zip", "has_sig": false, "md5_digest": "7ba46e8e079eab7f4b42b75040c06f6f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 147455, "upload_time": "2016-10-03T12:51:38", "url": "https://files.pythonhosted.org/packages/ee/d1/63c4fe5c336b03600a881667a9a610a689ce766e16e34e0253a1638891cf/samplepy-1.0.10.zip" } ], "1.0.11": [ { "comment_text": "", "digests": { "md5": "754df59102a5324f1086344b0fccc92f", "sha256": "c739952aab59bd920f8d28e3aa81a2ce310465d114618d7fc3e2927dcdb8b63b" }, "downloads": -1, "filename": "samplepy-1.0.11.zip", "has_sig": false, "md5_digest": "754df59102a5324f1086344b0fccc92f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 147450, "upload_time": "2016-10-03T12:53:03", "url": "https://files.pythonhosted.org/packages/77/be/186d0ba711a1cc4a46ec6171b1a3d63e6850edf7a61c3591b726cd27d9af/samplepy-1.0.11.zip" } ], "1.0.9": [ { "comment_text": "", "digests": { "md5": "dc93c9d0898c190ea431300adbf0a168", "sha256": "b3109735b659848989fe2ffa03509c438f6f5a730c235ff71b7d14f90773b798" }, "downloads": -1, "filename": "samplepy-1.0.9.zip", "has_sig": false, "md5_digest": "dc93c9d0898c190ea431300adbf0a168", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 147575, "upload_time": "2016-10-03T12:48:13", "url": "https://files.pythonhosted.org/packages/5b/2e/2905df889f7f59005936f3089b12220837dde68dbd202460149c453d06de/samplepy-1.0.9.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "754df59102a5324f1086344b0fccc92f", "sha256": "c739952aab59bd920f8d28e3aa81a2ce310465d114618d7fc3e2927dcdb8b63b" }, "downloads": -1, "filename": "samplepy-1.0.11.zip", "has_sig": false, "md5_digest": "754df59102a5324f1086344b0fccc92f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 147450, "upload_time": "2016-10-03T12:53:03", "url": "https://files.pythonhosted.org/packages/77/be/186d0ba711a1cc4a46ec6171b1a3d63e6850edf7a61c3591b726cd27d9af/samplepy-1.0.11.zip" } ] }