- Removed the .m() and .b() shortcuts from the linear regression
class. Use
.mb().band.mb().minstead. - linearRegression is now a function, and linearRegressionLine is a separate function.
UPGRADING
Before:
var l = ss.linear_regression().data([[0, 0], [1, 1]]);
l.line()(0); // 0After:
var line = ss.linearRegressionLine(ss.linearRegression([[0, 0], [1, 1]]));
line(0); // 0BayesModelis now a classPerceptronModelis now a class, and theweightsandbiasmembers are accessable as properties rather than methods.- All multi-word method names are now camelCase rather than underscore_cased:
this means that a method like
ss.r_squaredis now accessible asss.rSquared
- JSDoc documentation throughout
- Each function is now its own file, and simple-statistics is assembled with CommonJS-style require() statements. It can still be used in a browser with browserify.
- The standard normal table is now calculated using the cumulative distribution function, rather than hardcoded.
- Improved test coverage
- Switched linting from JSHint to eslint and fixed style issues this uncovered.
- Fixes
.jenkscorner cases.
- Adds
.samplefor simple random sampling - Adds
.shuffleand.shuffleInPlacefor random permutations - Adds
.chunkfor splitting arrays into chunked subsets
- fixes a bug in
modethat favored the last new number
mixincan now take an array in order to mixin functions into a single array instance rather than the global Array prototype.
- Adds
simple_statistics.harmonicMeanthanks to jseppi
- Adds
simple_statistics.quantileSortedthanks to rluta simple_statistics.quantilenow accepts a sorted list of quantiles as a second argument- Improved test coverage
- Adds
simple_statistics.cumulativeStdNormalProbabilityby doronlinder - Adds
simple_statistics.zScoreby doronlinder - Adds
simple_statistics.standardNormalTable
- Adds
simple_statistics.median_absolute_deviation()by siculars - Adds
simple_statistics.iqr()by siculars - Adds
simple_statistics.skewness()by Doron Linder - Lower-level accessors for linear regression allow users to do the line equation themselves
- Adds
simple_statistics.jenks() - Adds
simple_statistics.jenksMatrices() - Improves test coverage and validation
- Adds
simple_statistics.quantile() - Adds
simple_statistics.mixin() - Adds
simple_statistics.geometricMean() - Adds
simple_statistics.sampleVariance() - Adds
simple_statistics.sampleCovariance()
- Adds
simple_statistics.tTest() - Adds
simple_statistics.min() - Adds
simple_statistics.max()