Skip to content

Latest commit

 

History

History
110 lines (75 loc) · 2.87 KB

File metadata and controls

110 lines (75 loc) · 2.87 KB

CHANGELOG

1.0.0

Breaking Changes

  • Removed the .m() and .b() shortcuts from the linear regression class. Use .mb().b and .mb().m instead.
  • 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); // 0

After:

var line = ss.linearRegressionLine(ss.linearRegression([[0, 0], [1, 1]]));
line(0); // 0
  • BayesModel is now a class
  • PerceptronModel is now a class, and the weights and bias members 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_squared is now accessible as ss.rSquared

Non-Breaking Changes

  • 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.

0.9.2

  • Improved test coverage
  • Switched linting from JSHint to eslint and fixed style issues this uncovered.

0.9.1

  • Fixes .jenks corner cases.

0.9.0

  • Adds .sample for simple random sampling
  • Adds .shuffle and .shuffleInPlace for random permutations
  • Adds .chunk for splitting arrays into chunked subsets

0.8.1

  • fixes a bug in mode that favored the last new number

0.8.0

  • mixin can now take an array in order to mixin functions into a single array instance rather than the global Array prototype.

0.7.0

  • Adds simple_statistics.harmonicMean thanks to jseppi

0.6.0

  • Adds simple_statistics.quantileSorted thanks to rluta
  • simple_statistics.quantile now accepts a sorted list of quantiles as a second argument
  • Improved test coverage

0.5.0

  • Adds simple_statistics.cumulativeStdNormalProbability by doronlinder
  • Adds simple_statistics.zScore by doronlinder
  • Adds simple_statistics.standardNormalTable

0.4.0

  • 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

0.3.0

  • Adds simple_statistics.jenks()
  • Adds simple_statistics.jenksMatrices()
  • Improves test coverage and validation

0.2.0

  • Adds simple_statistics.quantile()
  • Adds simple_statistics.mixin()
  • Adds simple_statistics.geometricMean()
  • Adds simple_statistics.sampleVariance()
  • Adds simple_statistics.sampleCovariance()

0.1.0

  • Adds simple_statistics.tTest()
  • Adds simple_statistics.min()
  • Adds simple_statistics.max()