to your HTML Add class="sortable" to any table you'd like to make sortable Click on the headers to sort Thanks to many, many people for contributions and suggestions. Licenced as X11: http://www.kryogenix.org/code/browser/licence.html This basically means: do what you want with it. */ var stIsIE = /*@cc_on!@*/false; sorttable = { init: function() { // quit if this function has already been called if (arguments.callee.done) return; // flag this function so we don't do the same thing twice arguments.callee.done = true; // kill the timer if (_timer) clearInterval(_timer); if (!document.createElement || !document.getElementsByTagName) return; sorttable.DATE_RE = /^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/; forEach(document.getElementsByTagName('table'), function(table) { if (table.className.search(/\bsortable\b/) != -1) { sorttable.makeSortable(table); } }); }, makeSortable: function(table) { if (table.getElementsByTagName('thead').length == 0) { // table doesn't have a tHead. Since it should have, create one and // put the first table row in it. the = document.createElement('thead'); the.appendChild(table.rows[0]); table.insertBefore(the,table.firstChild); } // Safari doesn't support table.tHead, sigh if (table.tHead == null) table.tHead = table.getElementsByTagName('thead')[0]; if (table.tHead.rows.length != 1) return; // can't cope with two header rows // Sorttable v1 put rows with a class of "sortbottom" at the bottom (as // "total" rows, for example). This is B&R, since what you're supposed // to do is put them in a tfoot. So, if there are sortbottom rows, // for backwards compatibility, move them to tfoot (creating it if needed). sortbottomrows = []; for (var i=0; i
How many cats are prowling outside in your neighborhood? Or in your city? Or in your country?
That's a remarkably difficult question to answer, where the Wall Street Journal indicates the best estimates scientists have of the outdoor population of Felis catus, better known as the domestic house cat, are very far from being either accurate or precise:
In the U.S., estimates range from 40 million to 60 million; 30 million to 80 million; and 20 million to 120 million.
"It's a huge window," said Tyler Flockhart, an ecologist with the University of Maryland Center for Environmental Science. "And they're not even estimates. They're expert guesses based on very limited data."
At the end of the day, he said, scientists have to shrug and say this is the best information they have.
It's an important question to answer because Felis catus is a predator species, one whose prey includes birds and small mammals. To the extent that these hunted species overlap the list of endangered or threatened species, knowing the number of outdoor cats would better define the extent to which the populations of endangered animals are negatively impacted by their hunting habits, which in turn, could lead to more effective conservation efforts.
The WSJ article goes on to describe an effort to get an accurate count of the population of outdoor cats in the District of Columbia, which uses motion sensing cameras to conduct a census of the local cat population during a set period of time.
Accounting for the outdoor cats is the most complex part of the research. The project uses cameras to count cats in a given area over a certain period. Then, using a mathematical formula, the project extrapolates the total number of cats in the area by seeing what portion of the photographed cats show up on camera again.
The article provides the following infographic to describe the math developed by U.S. Geological Survey's Andy Royle to more accurate estimate the population of cats in the surveyed region from the sampling of images obtained by the network of motion-sensing cameras:
We built the following tool to do that math, so if you want to estimate the size of a population you're interesting in tracking from a sample of it observed over a limited period of time, you can do the same math. If you're accessing this article on a site that republishes our RSS news feed, you can choose to either click through to our site to access a working version of the tool or to view a static screen shot of the tool with its results for the default input data.
The results of running the tool with the default input data confirms the results presented in the WSJ's infographic, but the cool thing about it is that the math can be applied to estimate the size of other difficult-to-measure populations, such as the endangered species that are believed to be negatively impacted by predatory house cats. Or even the total unsheltered members of a region's homeless population, whose numbers are currently counted in the U.S. during a single night in January each year by community canvassers.
Alone, such a canvassing approach is affected by the limitations of the canvassers, who might miss significant portions of the homeless population during the single period where they perform their count, resulting in an undercount in the official figures. Adopting a dual-period measurement approach could provide a better indication of how accurate the canvassers single-period counts are while also leading to a better overall estimate of the total homeless population using this kind of math.
Labels: environment, math, tool
Welcome to the blogosphere's toolchest! Here, unlike other blogs dedicated to analyzing current events, we create easy-to-use, simple tools to do the math related to them so you can get in on the action too! If you would like to learn more about these tools, or if you would like to contribute ideas to develop for this blog, please e-mail us at:
ironman at politicalcalculations
Thanks in advance!
Closing values for previous trading day.
This site is primarily powered by:
The tools on this site are built using JavaScript. If you would like to learn more, one of the best free resources on the web is available at W3Schools.com.