{"id":17485114,"url":"https://github.com/cbleslie/mark-and-recapture","last_synced_at":"2025-04-02T13:12:18.314Z","repository":{"id":140927999,"uuid":"57076871","full_name":"cbleslie/Mark-and-Recapture","owner":"cbleslie","description":"A set of mark and recapture estimator functions based on Lincoln-Peterson/Chapman/Bayesian methods, for Javascript","archived":false,"fork":false,"pushed_at":"2017-05-21T04:37:13.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-08T10:05:06.039Z","etag":null,"topics":["javascript","mark","population-estimation","reacapture"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cbleslie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-25T21:15:27.000Z","updated_at":"2021-06-19T20:22:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"b64051f0-9d95-4288-a85f-717d9728fd43","html_url":"https://github.com/cbleslie/Mark-and-Recapture","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbleslie%2FMark-and-Recapture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbleslie%2FMark-and-Recapture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbleslie%2FMark-and-Recapture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbleslie%2FMark-and-Recapture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cbleslie","download_url":"https://codeload.github.com/cbleslie/Mark-and-Recapture/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246819786,"owners_count":20839095,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","mark","population-estimation","reacapture"],"created_at":"2024-10-19T01:53:11.177Z","updated_at":"2025-04-02T13:12:18.293Z","avatar_url":"https://github.com/cbleslie.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mark and Recapture\n[Mark and recapture is a method commonly used in ecology to estimate an animal population's size.](//https://en.wikipedia.org/wiki/Mark_and_recapture) It's also can be used on development/testing teams to estimate bug population. Having two teams do individual bug audits, and throwing their values into the algorithm to recieve an estimate.\n\n## Install\n```Shell\nnpm i mark-and-recapture\n```\n## Usage example\n```JavaScript\nvar MaR = require('mark-and-recapture');\n//function is curried so you can pass it it's needed values like so...\nMaR.estimate(10)(20)(6);\n```\nShould return and object...\n```JavaScript\n{\n  lincolnIndex: 33,\n  chapmanIndex: 32,\n  basyesianEstimate: 42,\n  basyesianEstimateStandardDeviation: 16.345871038277526\n}\n```\n## What are the values am I passing in?\nIn the function, `MaR.estimate(capInital)(capCurrent)(capIntersection)` the first value `capInital` is the first capture (software bugs/animals/whatever...), the second value `capCurrent` is the second round of capturing, and finally `capIntersection` is the \"overlap\" or intersection of both rounds of capturing. Id est, what of bugs/animals/whatever in **both of the previous rounds** of capturing are the same.\n\n### A scenario\n**Team A**, goes out into the forest to search for Humming birds, they capture, and tag 10 Humming Birds. Later, **Team B** goes out and does the same and captures 20 Humming Birds, of the 20 that they caught, 6 of them were already tagged by **Team A**! From this information, we can glean that, using the proper mathmatical algorithms, we can make a pretty accruate estimate of the population.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbleslie%2Fmark-and-recapture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcbleslie%2Fmark-and-recapture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbleslie%2Fmark-and-recapture/lists"}