A function that takes in a set of numbers -- or an array of numbers -- and smooths values that seem like outliers, based on standard deviation. Not included is the underscorej.s library available at http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js.

The actual libarary begins at line 1200; the first lines are a statistical library and a simple assert system used for tests.