{ "info": { "author": "Eduardo S. Pereira", "author_email": "pereira.somoza@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# Multiple Resolution Goodness of Fit.\n\nThe thesis of [cuevs2013]_ is that:\n\n \"... there is no one 'proper' resolution, but rather a range of\n resolutions is necessary to adequately describe the fit of\n models with reality.\"\n\n\n## Usage\n```python\n#!/usr/bin/env python3\n# -*- Coding: UTF-8 -*-\n\"\"\"\nExample from [costanza89]_.\n\nReferences\n----------\n\n.. [costanza89] COSTANZA, Robert. Model goodness of fit: a multiple resolution\n procedure. Ecological modelling, v. 47, n. 3-4,\n p. 199-215, 1989.\n\"\"\"\nfrom multiresolutionfit import Multiresoutionfit\nfrom numpy import arange, array\nfrom numpy.random import randint\nimport matplotlib.pyplot as plt\n\nscene1 = array([[1, 1, 1, 1, 2, 2, 2, 3, 3, 3],\n [1, 1, 1, 2, 2, 2, 3, 3, 3, 3],\n [1, 1, 2, 2, 2, 3, 3, 3, 3, 3],\n [3, 3, 2, 2, 3, 3, 3, 3, 3, 3],\n [1, 3, 3, 3, 3, 3, 3, 3, 3, 3],\n [1, 1, 1, 3, 3, 3, 3, 3, 3, 3],\n [2, 2, 2, 2, 2, 2, 2, 2, 3, 3],\n [3, 3, 3, 3, 3, 3, 3, 3, 3, 3],\n [3, 3, 3, 3, 2, 2, 3, 3, 3, 3],\n [3, 3, 3, 3, 2, 2, 2, 2, 3, 3]\n ])\n\nscene2 = array([[1, 1, 2, 2, 2, 2, 2, 2, 3, 3],\n [1, 1, 1, 1, 2, 3, 3, 3, 3, 3],\n [1, 1, 1, 2, 3, 3, 3, 3, 3, 3],\n [3, 1, 2, 2, 3, 3, 3, 4, 4, 4],\n [3, 3, 3, 3, 3, 3, 3, 3, 3, 3],\n [1, 1, 1, 3, 3, 3, 3, 3, 3, 3],\n [1, 1, 2, 2, 2, 2, 2, 2, 3, 3],\n [1, 2, 2, 3, 3, 2, 2, 3, 3, 3],\n [3, 3, 3, 3, 2, 2, 2, 3, 3, 3],\n [3, 3, 3, 3, 2, 2, 2, 2, 3, 3]\n ])\n\n\nobj = Multiresoutionfit(scene1, scene2, verbose=True)\nMAXW = 10\nk = 0.1\nwins = arange(1, 11, 1, dtype=int)\nftot, fw, wins = obj.ft(k=k, wins=wins)\nprint(f\"\\nWeighted fit: {ftot:.2f}\\n\")\nz, fit = obj.zvalue(k=k, wins=wins, permutations=30)\nprint(f\"z value {z:.2f}.\")\nplt.plot(wins, fw, marker='D')\nplt.xticks(wins)\nplt.ylim(ymax=0.95, ymin=0.75)\nplt.xlim(xmax=MAXW, xmin=1)\nplt.grid(True)\nplt.show()\n```\n\n## References\n----------\n\nCOSTANZA, Robert. Model goodness of fit: a multiple resolution\nprocedure. Ecological modelling, v. 47, n. 3-4,\np. 199-215, 1989.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/duducosmos/multiresolutionfit", "keywords": "", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "multiresolutionfit", "package_url": "https://pypi.org/project/multiresolutionfit/", "platform": "", "project_url": "https://pypi.org/project/multiresolutionfit/", "project_urls": { "Homepage": "https://github.com/duducosmos/multiresolutionfit" }, "release_url": "https://pypi.org/project/multiresolutionfit/1.0.0/", "requires_dist": [ "numpy", "numba", "opencv-python", "progressbar2" ], "requires_python": "", "summary": "Multi Resolution Fit.", "version": "1.0.0" }, "last_serial": 5640043, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "beb4f28e746a116fd26a6b8a60173a8d", "sha256": "5b4c3b53c0d8791c7021c9204a64ee155a81d2675755e9b6bba6ac62f15f4a92" }, "downloads": -1, "filename": "multiresolutionfit-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "beb4f28e746a116fd26a6b8a60173a8d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6692, "upload_time": "2019-08-06T14:21:40", "url": "https://files.pythonhosted.org/packages/15/d7/84ba45152f71f21d1bb964822d0bc6fa9e5b28ebaeaa765dce59cbdabc78/multiresolutionfit-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e64858c8d291ffa199cfc3515072b480", "sha256": "667d5ae553812283a84189d0ab1d268cceadc72414f3f280092ebf90f140c3d3" }, "downloads": -1, "filename": "multiresolutionfit-1.0.0.tar.gz", "has_sig": false, "md5_digest": "e64858c8d291ffa199cfc3515072b480", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4952, "upload_time": "2019-08-06T14:21:43", "url": "https://files.pythonhosted.org/packages/1c/06/ac8f394c3981c100a492b7964facbf98ac162f0dfd16671a45d105c4683f/multiresolutionfit-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "beb4f28e746a116fd26a6b8a60173a8d", "sha256": "5b4c3b53c0d8791c7021c9204a64ee155a81d2675755e9b6bba6ac62f15f4a92" }, "downloads": -1, "filename": "multiresolutionfit-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "beb4f28e746a116fd26a6b8a60173a8d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6692, "upload_time": "2019-08-06T14:21:40", "url": "https://files.pythonhosted.org/packages/15/d7/84ba45152f71f21d1bb964822d0bc6fa9e5b28ebaeaa765dce59cbdabc78/multiresolutionfit-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e64858c8d291ffa199cfc3515072b480", "sha256": "667d5ae553812283a84189d0ab1d268cceadc72414f3f280092ebf90f140c3d3" }, "downloads": -1, "filename": "multiresolutionfit-1.0.0.tar.gz", "has_sig": false, "md5_digest": "e64858c8d291ffa199cfc3515072b480", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4952, "upload_time": "2019-08-06T14:21:43", "url": "https://files.pythonhosted.org/packages/1c/06/ac8f394c3981c100a492b7964facbf98ac162f0dfd16671a45d105c4683f/multiresolutionfit-1.0.0.tar.gz" } ] }