{ "info": { "author": "James Lao", "author_email": "james@jlao.net", "bugtrack_url": null, "classifiers": [], "description": "# zignor-python\n\nZiggurat normal random number generator ported to Python\n\n## Requirement\n\n`NumPy` installation is required. Python 3 compatible.\n\n## Installation\n\nTo install, run \n\n`python setup.py install`\n\nor you can install from PyPI:\n\n`pip install zignor`\n\nIf you are running Windows and don't have MSVC compiler installed, a pre-built distribution on Python 3.5 is given in `dist` folder.\n\n## Usage\n\nIt will automatically import `NumPy`, so you can just use\n\n```\nimport zignor\nzignor.randn(10)\n```\nor\n```\nzignor.randn(3, 5)\n```\nto generate a matrix of 3 by 5.\n\n## More functions\n\nThis module includes two implementations. One is an slightly modified implementation of the original Ziggurat method ([http://www.jstatsoft.org/article/downloadSuppFile/v005i08/rnorrexp.c](http://www.jstatsoft.org/article/downloadSuppFile/v005i08/rnorrexp.c)). It uses SHR3 as the RNG for uniform distribution. This is the code behind `zignor.randn()` and `zignor.rnor()` method, and it is the faster of the two.\n\nWe also included a `zignor.rexp()` for generation exponential distribution.\n\nThe other implementation is the VIZIGNOR implementation by Doornik, J.A. It improves the original method and uses MWC8222 RNG to enable the method to pass some more tests. This method can be called by `zignor.zignor()`.\n\n## References\n1. G. Marsaglia and W.W. Tsang: The Ziggurat Method for Generating Random Variables. *Journal of Statistical Software*, vol. 5, no. 8, pp. 1\u20137, 2000.\n2. Doornik, J.A. (2005), \"An Improved Ziggurat Method to Generate Normal Random Samples\", mimeo, Nuffield College, University of Oxford.\n\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/jameslao/zignor-python/tarball/0.1", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jameslao/zignor-python", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "zignor", "package_url": "https://pypi.org/project/zignor/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/zignor/", "project_urls": { "Download": "https://github.com/jameslao/zignor-python/tarball/0.1", "Homepage": "https://github.com/jameslao/zignor-python" }, "release_url": "https://pypi.org/project/zignor/0.1.8/", "requires_dist": null, "requires_python": null, "summary": "Ziggurat Fast Normal Distribution RNG", "version": "0.1.8" }, "last_serial": 2069499, "releases": { "0.1.7": [ { "comment_text": "", "digests": { "md5": "f0b4790d5692dd65096c86fc93eb37ee", "sha256": "ecaf60b186c0b4a22fc65326a6541f13b31f53c023d6df9c4588fe4803f1af29" }, "downloads": -1, "filename": "zignor-0.1.7.zip", "has_sig": false, "md5_digest": "f0b4790d5692dd65096c86fc93eb37ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11610, "upload_time": "2015-11-16T07:55:35", "url": "https://files.pythonhosted.org/packages/3c/5d/2a500777323df742656c144453321cbe1d5ef795faade418bedb693f6e3b/zignor-0.1.7.zip" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "af47498d94c2ce6f5de1ee48c500cc68", "sha256": "05f49899c35f078506123b385ea97b7e47c4925060634b42bc48b6a99e6d12ae" }, "downloads": -1, "filename": "zignor-0.1.8.zip", "has_sig": false, "md5_digest": "af47498d94c2ce6f5de1ee48c500cc68", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11606, "upload_time": "2016-04-18T13:54:23", "url": "https://files.pythonhosted.org/packages/bd/93/8f7e6228c4134ccdef81ba0d5af72250f8f325627446a6d4aac5de21802d/zignor-0.1.8.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "af47498d94c2ce6f5de1ee48c500cc68", "sha256": "05f49899c35f078506123b385ea97b7e47c4925060634b42bc48b6a99e6d12ae" }, "downloads": -1, "filename": "zignor-0.1.8.zip", "has_sig": false, "md5_digest": "af47498d94c2ce6f5de1ee48c500cc68", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11606, "upload_time": "2016-04-18T13:54:23", "url": "https://files.pythonhosted.org/packages/bd/93/8f7e6228c4134ccdef81ba0d5af72250f8f325627446a6d4aac5de21802d/zignor-0.1.8.zip" } ] }