{ "info": { "author": "Caner Turkmen", "author_email": "caner.turkmen@boun.edu.tr", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Programming Language :: Cython", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.6", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Information Analysis", "Topic :: Scientific/Engineering :: Mathematics" ], "description": "## Welcome\n\nThis tiny library contains some C/Cython code for calculating\n- the (normalized) incomplete Beta function - `betainc`\n- the first derivatives (w.r.t. shape parameters) of the incomplete Beta function\n via the INBEDER algorithm\n- the digamma (Psi) function, the beta function and its logarithm (`betaln`)\n\n## API\n\n- **`beta(p, q)`**: Calculate the Beta function, where `B(p,q) = Gamma(p)*Gamma(q)/Gamma(p+q)`\n- **`betaln(p, q)`**: Calculate the logarithm of the Beta function, where `betaln(p,q) = ln B(p,q) = ln Gamma(p) + ln Gamma(q) - ln Gamma(p+q)`\n- **`betainc(x, p, q)`**: Calculate the regularized incomplete Beta function, where `betainc(x, p, q) = I_x(p, q)`. See http://mathworld.wolfram.com/IncompleteBetaFunction.html\n- **`betaincderp(x, p, q)`**: Compute the first derivative of the regularized incomplete Beta function with respect to the first shape parameter ``p``.\n- **`betaincderq(x, p, q)`**: First derivative of the regularized incomplete Beta function with respect to the second shape parameter ``q``.\n- **`digamma(x)`**: The digamma function. See http://mathworld.wolfram.com/DigammaFunction.html.\n\n## Installation\n\n```bash\n$ pip install betaincder\n```\n\n## Usage\n\nThe functions can be invoked from python, or `cimport`ed from Cython.\n\n```python\nfrom betaincder import betainc, betaincderp, betaincderq\nprint betaincderq(.5, 10, 10)\n```\n\nor\n\n```python\n%%cython \nfrom betaincder.c.betaincder cimport digamma, betaln, betainc, betaincderq\nprint betaincderq(.5, 10, 10)\n```\n\n## References\n- Robinson-Cox, J. F., & Boik, R. J. (1998). Derivatives of the Incomplete Beta Function. Journal of Statistical Software, 3(01).\n- Bernardo, Jose M. \"Algorithm AS 103: Psi (digamma) function.\" Journal of the Royal Statistical Society. Series C (Applied Statistics) 25.3 (1976): 315-317.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "betaincder", "package_url": "https://pypi.org/project/betaincder/", "platform": "", "project_url": "https://pypi.org/project/betaincder/", "project_urls": null, "release_url": "https://pypi.org/project/betaincder/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "compute the incomplete Beta function and its derivatives", "version": "0.1.1" }, "last_serial": 4448628, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "20246f213c01fde8f8518551e0a76190", "sha256": "bf291d29b12934846cafceac80e43a6f3b847a029de61f5a19fd1d930a1a57f0" }, "downloads": -1, "filename": "betaincder-0.1.tar.gz", "has_sig": false, "md5_digest": "20246f213c01fde8f8518551e0a76190", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25996, "upload_time": "2018-11-03T05:22:51", "url": "https://files.pythonhosted.org/packages/1d/a2/650b9b5248aa5ec090e3f92b5e5257a1062e10b6e481d837f6e8f5f9825f/betaincder-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "a2411f2b4c2832933f948ab24e0a10fe", "sha256": "9ffa671b631ba93746b042058aba633983eae2a21890ca898b3ee7f02df278ac" }, "downloads": -1, "filename": "betaincder-0.1.1.tar.gz", "has_sig": false, "md5_digest": "a2411f2b4c2832933f948ab24e0a10fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27268, "upload_time": "2018-11-04T01:00:54", "url": "https://files.pythonhosted.org/packages/a4/a5/a5b88234e5d145e7cb05251f1c026fa7e718f0e4bb8945238e57079aaacd/betaincder-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a2411f2b4c2832933f948ab24e0a10fe", "sha256": "9ffa671b631ba93746b042058aba633983eae2a21890ca898b3ee7f02df278ac" }, "downloads": -1, "filename": "betaincder-0.1.1.tar.gz", "has_sig": false, "md5_digest": "a2411f2b4c2832933f948ab24e0a10fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27268, "upload_time": "2018-11-04T01:00:54", "url": "https://files.pythonhosted.org/packages/a4/a5/a5b88234e5d145e7cb05251f1c026fa7e718f0e4bb8945238e57079aaacd/betaincder-0.1.1.tar.gz" } ] }