1 | # Changelog
|
2 |
|
3 | All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
4 |
|
5 | ### [7.7.4](https://github.com/simple-statistics/simple-statistics/compare/v7.7.3...v7.7.4) (2022-03-01)
|
6 |
|
7 |
|
8 | ### Bug Fixes
|
9 |
|
10 | * Return NaN on sum with non-number inputs ([#633](https://github.com/simple-statistics/simple-statistics/issues/633)) ([6547df7](https://github.com/simple-statistics/simple-statistics/commit/6547df71963bb05390dbe3458759de7d80ba9056))
|
11 |
|
12 | ### [7.7.3](https://github.com/simple-statistics/simple-statistics/compare/v7.7.2...v7.7.3) (2022-01-13)
|
13 |
|
14 | ### [7.7.2](https://github.com/simple-statistics/simple-statistics/compare/v7.7.1...v7.7.2) (2022-01-13)
|
15 |
|
16 | ### [7.7.1](https://github.com/simple-statistics/simple-statistics/compare/v7.7.0...v7.7.1) (2022-01-13)
|
17 |
|
18 |
|
19 | ### Bug Fixes
|
20 |
|
21 | * add missing TypeScript typing for silhouetteMetric ([#589](https://github.com/simple-statistics/simple-statistics/issues/589)) ([d4ca159](https://github.com/simple-statistics/simple-statistics/commit/d4ca1590e93a71c625099d21d84ab0230bad9ccc))
|
22 |
|
23 | ## [7.7.0](https://github.com/simple-statistics/simple-statistics/compare/v7.6.0...v7.7.0) (2021-03-31)
|
24 |
|
25 |
|
26 | ### Features
|
27 |
|
28 | * Implement Wilcoxon rank sum statistic ([#568](https://github.com/simple-statistics/simple-statistics/issues/568)) ([77cbec2](https://github.com/simple-statistics/simple-statistics/commit/77cbec21b2f0dd6cb2e47c244859612b4a8f2064))
|
29 | * Rank correlation ([#562](https://github.com/simple-statistics/simple-statistics/issues/562)) ([4244faf](https://github.com/simple-statistics/simple-statistics/commit/4244fafd81dd25e49c1d848432bfa15109c1cab0))
|
30 |
|
31 | ## [7.6.0](https://github.com/simple-statistics/simple-statistics/compare/v7.5.0...v7.6.0) (2021-03-02)
|
32 |
|
33 |
|
34 | ### Features
|
35 |
|
36 | * Implement log average ([#556](https://github.com/simple-statistics/simple-statistics/issues/556)) ([aeda3c0](https://github.com/simple-statistics/simple-statistics/commit/aeda3c02a5c7160aa2d8df82a7fae808a5a066fe))
|
37 |
|
38 | ## [7.5.0](https://github.com/simple-statistics/simple-statistics/compare/v7.4.1...v7.5.0) (2021-02-24)
|
39 |
|
40 |
|
41 | ### Features
|
42 |
|
43 | * Add logit and cumulativeStdLogisticProbability methods ([7279632](https://github.com/simple-statistics/simple-statistics/commit/7279632f3010ab2c00e33f01891083bbecea2b96))
|
44 |
|
45 | ### [7.4.1](https://github.com/simple-statistics/simple-statistics/compare/v7.4.0...v7.4.1) (2021-02-12)
|
46 |
|
47 |
|
48 | ### Bug Fixes
|
49 |
|
50 | * Add TypeScript bindings for silhouette. ([#549](https://github.com/simple-statistics/simple-statistics/issues/549)) ([119c09f](https://github.com/simple-statistics/simple-statistics/commit/119c09f3b75f234d265ad0f44fe2740c4aca465c))
|
51 |
|
52 | ## [7.4.0](https://github.com/simple-statistics/simple-statistics/compare/v7.3.2...v7.4.0) (2020-12-14)
|
53 |
|
54 |
|
55 | ### Features
|
56 |
|
57 | * Add coefficient of variation ([ead74c6](https://github.com/simple-statistics/simple-statistics/commit/ead74c6806c07be883387d053890a40354540176))
|
58 |
|
59 | ### [7.3.2](https://github.com/simple-statistics/simple-statistics/compare/v7.3.1...v7.3.2) (2020-10-31)
|
60 |
|
61 |
|
62 | ### Bug Fixes
|
63 |
|
64 | * increase `ckmeans` performance ([#521](https://github.com/simple-statistics/simple-statistics/issues/521)) ([af279ee](https://github.com/simple-statistics/simple-statistics/commit/af279eed6c7ebb8c6894bb8e095ff6e93982bc4e))
|
65 |
|
66 | ### [7.3.1](https://github.com/simple-statistics/simple-statistics/compare/v7.3.0...v7.3.1) (2020-10-25)
|
67 |
|
68 |
|
69 | ### Bug Fixes
|
70 |
|
71 | * Avoid unnecessary copy in shuffle ([#515](https://github.com/simple-statistics/simple-statistics/issues/515)) ([34f0e2e](https://github.com/simple-statistics/simple-statistics/commit/34f0e2e21915f42884704947ac3f8c49230fd164))
|
72 |
|
73 | ## [7.3.0](https://github.com/simple-statistics/simple-statistics/compare/v7.2.0...v7.3.0) (2020-09-08)
|
74 |
|
75 |
|
76 | ### Features
|
77 |
|
78 | * Add randomSource argument to permutationTest ([#505](https://github.com/simple-statistics/simple-statistics/issues/505)) ([f289fd1](https://github.com/simple-statistics/simple-statistics/commit/f289fd11bd4eafcd5df319979b051a030bf60f88))
|
79 | * Relative error and approximate equality ([#506](https://github.com/simple-statistics/simple-statistics/issues/506)) ([88e8794](https://github.com/simple-statistics/simple-statistics/commit/88e87943fdb984c7b410fb7db606cd0fe8b87317))
|
80 |
|
81 | ## [7.2.0](https://github.com/simple-statistics/simple-statistics/compare/v7.1.0...v7.2.0) (2020-08-23)
|
82 |
|
83 |
|
84 | ### Features
|
85 |
|
86 | * K means clustering ([#484](https://github.com/simple-statistics/simple-statistics/issues/484)) ([7913bcb](https://github.com/simple-statistics/simple-statistics/commit/7913bcbf393786fe8b5212afe133c1b90d9c61ba))
|
87 | * Silhouette metric ([269a4b8](https://github.com/simple-statistics/simple-statistics/commit/269a4b8982e645c89445cd208db14f1c9079a4ec))
|
88 |
|
89 | ## [7.1.0](https://github.com/simple-statistics/simple-statistics/compare/v7.0.9...v7.1.0) (2020-05-06)
|
90 |
|
91 |
|
92 | ### Features
|
93 |
|
94 | * meanSimple method that uses sumSimple for higher performance ([8e82333](https://github.com/simple-statistics/simple-statistics/commit/8e82333bf4d2101c990aa542e34b710240d77f36))
|
95 |
|
96 | ### [7.0.9](https://github.com/simple-statistics/simple-statistics/compare/v7.0.8...v7.0.9) (2020-04-20)
|
97 |
|
98 | ### [7.0.8](https://github.com/simple-statistics/simple-statistics/compare/v7.0.7...v7.0.8) (2020-02-03)
|
99 |
|
100 |
|
101 | ### Bug Fixes
|
102 |
|
103 | * add missing typings for extent ([#430](https://github.com/simple-statistics/simple-statistics/issues/430)) ([330fd63](https://github.com/simple-statistics/simple-statistics/commit/330fd6386e07b4bd7eff9860c1c31ea2c2f022d0))
|
104 |
|
105 | ### [7.0.7](https://github.com/simple-statistics/simple-statistics/compare/v7.0.6...v7.0.7) (2019-11-18)
|
106 |
|
107 | ### [7.0.6](https://github.com/simple-statistics/simple-statistics/compare/v7.0.5...v7.0.6) (2019-11-15)
|
108 |
|
109 | ### [7.0.5](https://github.com/simple-statistics/simple-statistics/compare/v7.0.4...v7.0.5) (2019-07-10)
|
110 |
|
111 |
|
112 |
|
113 | ### [7.0.4](https://github.com/simple-statistics/simple-statistics/compare/v7.0.3...v7.0.4) (2019-07-10)
|
114 |
|
115 |
|
116 |
|
117 | ### [7.0.3](https://github.com/simple-statistics/simple-statistics/compare/v7.0.2...v7.0.3) (2019-07-10)
|
118 |
|
119 |
|
120 | ### Bug Fixes
|
121 |
|
122 | * export permutationTest for ts ([#383](https://github.com/simple-statistics/simple-statistics/issues/383)) ([1915cd2](https://github.com/simple-statistics/simple-statistics/commit/1915cd2))
|
123 |
|
124 |
|
125 | ### Tests
|
126 |
|
127 | * Add --skipLibCheck to make tsc ignore node modules. ([089f47a](https://github.com/simple-statistics/simple-statistics/commit/089f47a))
|
128 |
|
129 |
|
130 |
|
131 | ## [7.0.2](https://github.com/simple-statistics/simple-statistics/compare/v7.0.1...v7.0.2) (2019-02-26)
|
132 |
|
133 |
|
134 |
|
135 | <a name="7.0.1"></a>
|
136 | ## [7.0.1](https://github.com/simple-statistics/simple-statistics/compare/v7.0.0...v7.0.1) (2019-02-07)
|
137 |
|
138 |
|
139 | ### Bug Fixes
|
140 |
|
141 | * code format error ([a1b9f15](https://github.com/simple-statistics/simple-statistics/commit/a1b9f15))
|
142 | * plus minus sign error ([f0b047d](https://github.com/simple-statistics/simple-statistics/commit/f0b047d))
|
143 |
|
144 |
|
145 |
|
146 | <a name="7.0.0"></a>
|
147 | # [7.0.0](https://github.com/simple-statistics/simple-statistics/compare/v6.1.1...v7.0.0) (2018-12-30)
|
148 |
|
149 |
|
150 | ### Bug Fixes
|
151 |
|
152 | * change umd name from simpleStatistics to ss ([59b42c0](https://github.com/simple-statistics/simple-statistics/commit/59b42c0))
|
153 | * Fix flipped umd:main package entry ([c9fe55b](https://github.com/simple-statistics/simple-statistics/commit/c9fe55b))
|
154 |
|
155 |
|
156 | ### Chores
|
157 |
|
158 | * Refactor from functions to classes, use Number.isInteger ([d974a1a](https://github.com/simple-statistics/simple-statistics/commit/d974a1a)), closes [#296](https://github.com/simple-statistics/simple-statistics/issues/296)
|
159 |
|
160 |
|
161 | ### BREAKING CHANGES
|
162 |
|
163 | * IE11 support is dropped.
|
164 |
|
165 |
|
166 |
|
167 | <a name="6.1.1"></a>
|
168 | ## [6.1.1](https://github.com/simple-statistics/simple-statistics/compare/v6.1.0...v6.1.1) (2018-09-24)
|
169 |
|
170 |
|
171 | ### Bug Fixes
|
172 |
|
173 | * **permutationTest:** Add TypeScript definition for permutationTest ([e7fa9db](https://github.com/simple-statistics/simple-statistics/commit/e7fa9db)), closes [#298](https://github.com/simple-statistics/simple-statistics/issues/298)
|
174 | * array quantile on certain kinds of input ([#334](https://github.com/simple-statistics/simple-statistics/issues/334)) ([e9d007e](https://github.com/simple-statistics/simple-statistics/commit/e9d007e))
|
175 |
|
176 |
|
177 |
|
178 | <a name="6.1.0"></a>
|
179 | # [6.1.0](https://github.com/simple-statistics/simple-statistics/compare/v6.0.1...v6.1.0) (2018-06-23)
|
180 |
|
181 |
|
182 | ### Features
|
183 |
|
184 | * gammaln ([9d03631](https://github.com/simple-statistics/simple-statistics/commit/9d03631))
|
185 |
|
186 |
|
187 |
|
188 | <a name="6.0.1"></a>
|
189 | ## [6.0.1](https://github.com/simple-statistics/simple-statistics/compare/v6.0.0...v6.0.1) (2018-05-11)
|
190 |
|
191 |
|
192 |
|
193 | <a name="6.0.0"></a>
|
194 | # [6.0.0](https://github.com/simple-statistics/simple-statistics/compare/v5.4.0...v6.0.0) (2018-04-30)
|
195 |
|
196 |
|
197 | ### Bug Fixes
|
198 |
|
199 | * Polyfill Number.isInteger function before committing to dropping IE11 ([#297](https://github.com/simple-statistics/simple-statistics/issues/297)) ([01cc37e](https://github.com/simple-statistics/simple-statistics/commit/01cc37e)), closes [#296](https://github.com/simple-statistics/simple-statistics/issues/296)
|
200 |
|
201 |
|
202 | ### build
|
203 |
|
204 | * **package.json:** Remove bower and component.json compatibility ([#294](https://github.com/simple-statistics/simple-statistics/issues/294)) ([0593cb8](https://github.com/simple-statistics/simple-statistics/commit/0593cb8)), closes [#293](https://github.com/simple-statistics/simple-statistics/issues/293)
|
205 |
|
206 |
|
207 | ### Features
|
208 |
|
209 | * Gamma Function ([39c8ecd](https://github.com/simple-statistics/simple-statistics/commit/39c8ecd))
|
210 |
|
211 |
|
212 | ### BREAKING CHANGES
|
213 |
|
214 | * **package.json:** simple-statistics is no longer supported as a component module or a bower module.
|
215 | All other forms of support - script tag, unpkg, npm - continue.
|
216 |
|
217 |
|
218 |
|
219 | <a name="5.4.0"></a>
|
220 | # [5.4.0](https://github.com/simple-statistics/simple-statistics/compare/v5.3.1...v5.4.0) (2018-04-21)
|
221 |
|
222 |
|
223 | ### Features
|
224 |
|
225 | * Permutation test ([1be011e](https://github.com/simple-statistics/simple-statistics/commit/1be011e))
|
226 |
|
227 |
|
228 |
|
229 | <a name="5.3.1"></a>
|
230 | ## [5.3.1](https://github.com/simple-statistics/simple-statistics/compare/v5.3.0...v5.3.1) (2018-03-23)
|
231 |
|
232 |
|
233 | ### Bug Fixes
|
234 |
|
235 | * Someone simple-statistics dependend on itself... ([12acd40](https://github.com/simple-statistics/simple-statistics/commit/12acd40))
|
236 |
|
237 |
|
238 |
|
239 | <a name="5.3.0"></a>
|
240 | # [5.3.0](https://github.com/simple-statistics/simple-statistics/compare/v5.2.1...v5.3.0) (2018-03-23)
|
241 |
|
242 |
|
243 | ### Features
|
244 |
|
245 | * adding extent ([80bcc99](https://github.com/simple-statistics/simple-statistics/commit/80bcc99))
|
246 | * adding extentSorted ([053399f](https://github.com/simple-statistics/simple-statistics/commit/053399f))
|
247 | * adding quantileRankSorted ([#285](https://github.com/simple-statistics/simple-statistics/issues/285)) ([84248ea](https://github.com/simple-statistics/simple-statistics/commit/84248ea))
|
248 |
|
249 |
|
250 |
|
251 | <a name="5.2.1"></a>
|
252 | ## [5.2.1](https://github.com/simple-statistics/simple-statistics/compare/v5.2.0...v5.2.1) (2017-12-20)
|
253 |
|
254 |
|
255 |
|
256 | <a name="5.2.0"></a>
|
257 | # [5.2.0](https://github.com/simple-statistics/simple-statistics/compare/v5.1.0...v5.2.0) (2017-11-29)
|
258 |
|
259 |
|
260 | ### Features
|
261 |
|
262 | * **package:** Add unpkg field to package.json to support unpkg default entry point ([#267](https://github.com/simple-statistics/simple-statistics/issues/267)) ([c1afd51](https://github.com/simple-statistics/simple-statistics/commit/c1afd51))
|
263 |
|
264 |
|
265 |
|
266 | <a name="5.1.0"></a>
|
267 | # [5.1.0](https://github.com/simple-statistics/simple-statistics/compare/v5.0.0...v5.1.0) (2017-10-23)
|
268 |
|
269 |
|
270 | ### Features
|
271 |
|
272 | * Add TypeScript definition ([688538b](https://github.com/simple-statistics/simple-statistics/commit/688538b))
|
273 |
|
274 |
|
275 |
|
276 | <a name="5.0.1"></a>
|
277 | ## [5.0.1](https://github.com/simple-statistics/simple-statistics/compare/v5.0.0...v5.0.1) (2017-10-15)
|
278 |
|
279 |
|
280 | ### Bug Fixes
|
281 |
|
282 | * Add index.js to package.json ([b744bfa](https://github.com/simple-statistics/simple-statistics/commit/b744bfa)), closes [#253](https://github.com/simple-statistics/simple-statistics/issues/253)
|
283 |
|
284 |
|
285 |
|
286 | <a name="5.0.0"></a>
|
287 | # [5.0.0](https://github.com/simple-statistics/simple-statistics/compare/v4.1.1...v5.0.0) (2017-09-26)
|
288 |
|
289 |
|
290 | ### Features
|
291 |
|
292 | * Expose ES6 modules ([a775ef6](https://github.com/simple-statistics/simple-statistics/commit/a775ef6)), closes [#210](https://github.com/simple-statistics/simple-statistics/issues/210)
|
293 | * kernel density estimation ([#245](https://github.com/simple-statistics/simple-statistics/issues/245)) ([8637af1](https://github.com/simple-statistics/simple-statistics/commit/8637af1)), closes [#244](https://github.com/simple-statistics/simple-statistics/issues/244)
|
294 |
|
295 |
|
296 | ### BREAKING CHANGES
|
297 |
|
298 | * simple-statistics now uses ES6 modules internally, and exposes a entry point for other modules to use it as an ES6 module.
|
299 |
|
300 | This means:
|
301 |
|
302 | - If you use Rollup or another library that supports the `jsnext:main` or `module` fields of package.json, you'll likely automatically start using this feature. When you use simple-statistics as an ES6 module, `import {min} from "simple-statistics"` and other imports of only a few of its methods will automatically do 'tree-shaking' and only pull in the parts you use (if your bundling tool supports tree-shaking)
|
303 | - Sub-requiring parts of simple-statistics, like `require('simple-statistics/min')` is **deprecated** and will not work. Its components are now written with ES6 syntax.
|
304 |
|
305 |
|
306 |
|
307 | <a name="4.1.1"></a>
|
308 | ## [4.1.1](https://github.com/simple-statistics/simple-statistics/compare/v4.1.0...v4.1.1) (2017-08-05)
|
309 |
|
310 |
|
311 | ### Bug Fixes
|
312 |
|
313 | * expose BayesianClassifier & PerceptronModel instead of bayesian and perceptron ([1d03671](https://github.com/simple-statistics/simple-statistics/commit/1d03671))
|
314 |
|
315 |
|
316 |
|
317 | <a name="4.1.0"></a>
|
318 | # [4.1.0](https://github.com/simple-statistics/simple-statistics/compare/v4.0.0...v4.1.0) (2017-04-27)
|
319 |
|
320 |
|
321 | ### Features
|
322 |
|
323 | * sampleKurtosis ([1d9eec2](https://github.com/simple-statistics/simple-statistics/commit/1d9eec2))
|
324 |
|
325 |
|
326 |
|
327 | <a name="4.0.0"></a>
|
328 | # [4.0.0](https://github.com/simple-statistics/simple-statistics/compare/v3.0.0...v4.0.0) (2017-04-25)
|
329 |
|
330 |
|
331 | ### Bug Fixes
|
332 |
|
333 | * Remove mixin method ([#215](https://github.com/simple-statistics/simple-statistics/issues/215)) ([85036e2](https://github.com/simple-statistics/simple-statistics/commit/85036e2)), closes [#211](https://github.com/simple-statistics/simple-statistics/issues/211)
|
334 |
|
335 |
|
336 | ### Performance Improvements
|
337 |
|
338 | * **binomialDistribution:** avoid expensive factorial calculations ([#205](https://github.com/simple-statistics/simple-statistics/issues/205)) ([525f9c0](https://github.com/simple-statistics/simple-statistics/commit/525f9c0))
|
339 | * **core:** Improve performance of min, max, sumNthPowerDeviations, variance, sampleVariance ([#195](https://github.com/simple-statistics/simple-statistics/issues/195)) ([9d2569a](https://github.com/simple-statistics/simple-statistics/commit/9d2569a))
|
340 | * **distributions:** return array instead of object ([#209](https://github.com/simple-statistics/simple-statistics/issues/209)) ([6c5df5f](https://github.com/simple-statistics/simple-statistics/commit/6c5df5f))
|
341 | * **poissonDistribution:** avoid expensive factorial calculation ([#206](https://github.com/simple-statistics/simple-statistics/issues/206)) ([b34aceb](https://github.com/simple-statistics/simple-statistics/commit/b34aceb))
|
342 | * **poissonDistribution:** use Math.exp instead of Math.pow ([#208](https://github.com/simple-statistics/simple-statistics/issues/208)) ([6491dfa](https://github.com/simple-statistics/simple-statistics/commit/6491dfa))
|
343 | * **sampleSkewness:** Improve sampleSkewness performance ([#197](https://github.com/simple-statistics/simple-statistics/issues/197)) ([03d37eb](https://github.com/simple-statistics/simple-statistics/commit/03d37eb))
|
344 | * **sum:** Switch from Kahan to Kahan-Babuska algorithm ([1b42d7f](https://github.com/simple-statistics/simple-statistics/commit/1b42d7f))
|
345 |
|
346 |
|
347 | ### BREAKING CHANGES
|
348 |
|
349 | * Removes .mixin(). Instead use simple-statistics in a functional style.
|
350 | * **distributions:** The return value of bernoulliDistribution, binomialDistribution, and poissonDistribution is no longer an Object with number keys, it is now an Array of numbers.
|
351 |
|
352 |
|
353 |
|
354 | <a name="3.0.0"></a>
|
355 | # [3.0.0](https://github.com/simple-statistics/simple-statistics/compare/v2.5.0...v3.0.0) (2017-04-06)
|
356 |
|
357 | **Breaking change**: before this release, simple-statistics would return `NaN`
|
358 | when provided with invalid input. After 3.0.0, simple-statistics will throw
|
359 | exceptions when provided with invalid input. If you previously used `isNaN` to
|
360 | test for these error cases, switch to using `try` and `catch`, or make sure
|
361 | that valid input is given to simple-statistics.
|
362 |
|
363 | ### Features
|
364 |
|
365 | * **mean:** combineMeans, a method for combining calculated means ([d9e3ebc](https://github.com/simple-statistics/simple-statistics/commit/d9e3ebc))
|
366 | * **mean:** subtractFromMean, a method to remove a value from the mean ([afe76e9](https://github.com/simple-statistics/simple-statistics/commit/afe76e9))
|
367 | * **variance:** combineVariances, a method for combining pre-calculated variances of two dataset ([68133f7](https://github.com/simple-statistics/simple-statistics/commit/68133f7))
|
368 |
|
369 |
|
370 |
|
371 | <a name="2.5.0"></a>
|
372 | # [2.5.0](https://github.com/simple-statistics/simple-statistics/compare/v2.4.0...v2.5.0) (2017-02-24)
|
373 |
|
374 |
|
375 | ### Features
|
376 |
|
377 | * **mean:** addToMean, a method to update an mean with a new element ([b6637b4](https://github.com/simple-statistics/simple-statistics/commit/b6637b4))
|
378 |
|
379 |
|
380 |
|
381 | <a name="2.4.0"></a>
|
382 | # [2.4.0](https://github.com/simple-statistics/simple-statistics/compare/v2.3.0...v2.4.0) (2017-02-22)
|
383 |
|
384 |
|
385 | ### Bug Fixes
|
386 |
|
387 | * **build:** Ignore conventional-changelog-core for Flow ([4874868](https://github.com/simple-statistics/simple-statistics/commit/4874868))
|
388 |
|
389 | ### Features
|
390 |
|
391 | * **mode:** Implement modeFast, an indexed mode implementation (#183) ([59b7191](https://github.com/simple-statistics/simple-statistics/commit/59b7191))
|
392 |
|
393 |
|
394 |
|
395 | <a name="2.3.0"></a>
|
396 | # [2.3.0](https://github.com/simple-statistics/simple-statistics/compare/v2.2.0...v2.3.0) (2017-02-17)
|
397 |
|
398 |
|
399 | ### Features
|
400 |
|
401 | * **core:** sampleWithReplacement (#174) ([a8d05d1](https://github.com/simple-statistics/simple-statistics/commit/a8d05d1))
|
402 |
|
403 |
|
404 |
|
405 | # CHANGELOG
|
406 |
|
407 | ## 2.2.0
|
408 |
|
409 | * Improved [Ckmeans](https://github.com/simple-statistics/simple-statistics/pull/163) algorithm
|
410 | from the [updated R project](https://cran.r-project.org/web/packages/Ckmeans.1d.dp/NEWS)
|
411 | that dramatically increases performance.
|
412 | * Adds `permutationHeap` method for computing all permutations of an array.
|
413 | * Adds `combinations` for combinations without replacement
|
414 | * Adds `combinationsReplacement` for combinations with replacement
|
415 |
|
416 | ## 2.1.0
|
417 |
|
418 | * Adds `bisect` method that implements the [bisection method](https://en.wikipedia.org/wiki/Bisection_method)
|
419 | for root-finding. Thanks [Jamie Neubert Pedersen](https://github.com/eikooc)
|
420 | for the contribution!
|
421 |
|
422 | ## 2.0.0
|
423 |
|
424 | New features:
|
425 |
|
426 | * `product`: returns the product of a series of numbers
|
427 | * `medianSorted`: exposes the internal method of `median`
|
428 | that only operates on sorted arrays and works in constant time
|
429 | * `modeSorted`: exposes the internal method of `mode` and works
|
430 | in linear time.
|
431 |
|
432 | Specifications:
|
433 |
|
434 | * Adds [Flow](http://flowtype.org/) annotations to all methods, allowing
|
435 | up-front typechecking if you use Flow in your application.
|
436 |
|
437 | Changes:
|
438 |
|
439 | * Invalid input now uniformly produces the value `NaN` instead
|
440 | of previously a mix of `null` and `undefined`.
|
441 | * The method `sortedUniqueCount` is now called `uniqueCountSorted` to
|
442 | match the other sorted methods, `medianSorted` and `modeSorted`
|
443 |
|
444 | Fixes:
|
445 |
|
446 | * `equalIntervalBreaks` was not exported by `index.js`, and now is.
|
447 |
|
448 | ## 1.0.1
|
449 |
|
450 | Fixes:
|
451 |
|
452 | * Fixes to ckmeans algorithm (thanks to @llimllib) (#125)
|
453 |
|
454 | Housekeeping:
|
455 |
|
456 | * Add keywords to package. Fixes #120
|
457 | * Standardize indentation, add example for epsilon
|
458 | * Browser testing with Sauce Labs
|
459 |
|
460 | Bundle size optimizations:
|
461 |
|
462 | * Add external sourcemaps for minified and unminified standalone bundles
|
463 | * Use bundle-collapser for smaller bundles
|
464 | * Indicate numericSort as an internal method.
|
465 |
|
466 | ## 1.0.0
|
467 |
|
468 | ### Breaking Changes
|
469 |
|
470 | * Removed the .m() and .b() shortcuts from the linear regression
|
471 | class. Use `.mb().b` and `.mb().m` instead.
|
472 | * linearRegression is now a function, and linearRegressionLine is a separate
|
473 | function.
|
474 |
|
475 | **UPGRADING**
|
476 |
|
477 | #### Linear Regression
|
478 |
|
479 | Before:
|
480 |
|
481 | ```js
|
482 | var l = ss.linear_regression().data([[0, 0], [1, 1]]);
|
483 | l.line()(0); // 0
|
484 | ```
|
485 |
|
486 | After:
|
487 |
|
488 | ```js
|
489 | var line = ss.linearRegressionLine(ss.linearRegression([[0, 0], [1, 1]]));
|
490 | line(0); // 0
|
491 | ```
|
492 |
|
493 | #### Jenks -> ckmeans
|
494 |
|
495 | The implementation of Jenks natural breaks was removed: an implementation
|
496 | of Ckmeans, an improvement on its technique, is added. Ckmeans should
|
497 | work better for nearly all Jenks usecases.
|
498 |
|
499 | Before:
|
500 |
|
501 | ```js
|
502 | ss.jenks([1, 2, 4, 5, 7, 9, 10, 20], 3) //= [1, 7, 20, 20]
|
503 | ```
|
504 |
|
505 | After:
|
506 |
|
507 | ```js
|
508 | ss.ckmeans([1, 2, 4, 5, 7, 9, 10, 20], 3))
|
509 |
|
510 | [ [ 1,
|
511 | 2,
|
512 | 4,
|
513 | 5,
|
514 | 7,
|
515 | 9 ],
|
516 | [ 10 ],
|
517 | [ 20 ] ]
|
518 | ```
|
519 |
|
520 | Instead of class breaks, ckmeans returns clustered data. Class breaks
|
521 | can be derived by taking the first value from each cluster:
|
522 |
|
523 | ```js
|
524 | var breaks = ss.ckmeans([1, 2, 4, 5, 7, 9, 10, 20], 3)).map(function(cluster) {
|
525 | return cluster[0];
|
526 | });
|
527 | ```
|
528 |
|
529 | * `BayesModel` is now a class
|
530 | * `PerceptronModel` is now a class, and the `weights` and `bias` members
|
531 | are accessable as properties rather than methods.
|
532 | * All multi-word method names are now camelCase rather than underscore_cased:
|
533 | this means that a method like `ss.r_squared` is now accessible as `ss.rSquared`
|
534 |
|
535 | ### New Features
|
536 |
|
537 | * Ckmeans replaces Jenks
|
538 | * `sortedUniqueCount` provides an extremely fast method for counting
|
539 | unique values of sorted arrays.
|
540 | * `sumNthPowerDeviations` is now exposed, providing a simple way to calculate
|
541 | the fundamental aspect of measures like variance and skewness.
|
542 |
|
543 | ### Non-Breaking Changes
|
544 |
|
545 | * JSDoc documentation throughout
|
546 | * Each function is now its own file, and simple-statistics
|
547 | is assembled with CommonJS-style require() statements. simple-statistics can
|
548 | still be used in a browser with browserify.
|
549 | * The standard normal table is now calculated using the cumulative distribution
|
550 | function, rather than hardcoded.
|
551 |
|
552 | ## 0.9.2
|
553 |
|
554 | * Improved test coverage
|
555 | * Switched linting from JSHint to [eslint](http://eslint.org/) and fixed
|
556 | style issues this uncovered.
|
557 |
|
558 | ## 0.9.1
|
559 |
|
560 | * Fixes `.jenks` corner cases.
|
561 |
|
562 | ## 0.9.0
|
563 |
|
564 | * Adds `.sample` for simple random sampling
|
565 | * Adds `.shuffle` and `.shuffleInPlace` for random permutations
|
566 | * Adds `.chunk` for splitting arrays into chunked subsets
|
567 |
|
568 | ## 0.8.1
|
569 |
|
570 | * fixes a bug in `mode` that favored the last new number
|
571 |
|
572 | ## 0.8.0
|
573 |
|
574 | * `mixin` can now take an array in order to mixin functions into a single array
|
575 | instance rather than the global Array prototype.
|
576 |
|
577 | ## 0.7.0
|
578 |
|
579 | * Adds `simple_statistics.harmonicMean` thanks to [jseppi](https://github.com/jseppi)
|
580 |
|
581 | ## 0.6.0
|
582 |
|
583 | * Adds `simple_statistics.quantileSorted` thanks to [rluta](http://github.com/rluta)
|
584 | * `simple_statistics.quantile` now accepts a sorted list of quantiles as a second argument
|
585 | * Improved test coverage
|
586 |
|
587 | ## 0.5.0
|
588 |
|
589 | * Adds `simple_statistics.cumulativeStdNormalProbability` by [doronlinder](https://github.com/doronlinder)
|
590 | * Adds `simple_statistics.zScore` by doronlinder
|
591 | * Adds `simple_statistics.standardNormalTable`
|
592 |
|
593 | ## 0.4.0
|
594 |
|
595 | * Adds `simple_statistics.median_absolute_deviation()` by siculars
|
596 | * Adds `simple_statistics.iqr()` by siculars
|
597 | * Adds `simple_statistics.skewness()` by Doron Linder
|
598 | * Lower-level accessors for linear regression allow users to do the line
|
599 | equation themselves
|
600 |
|
601 | ## 0.3.0
|
602 |
|
603 | * Adds `simple_statistics.jenks()`
|
604 | * Adds `simple_statistics.jenksMatrices()`
|
605 | * Improves test coverage and validation
|
606 |
|
607 | ## 0.2.0
|
608 |
|
609 | * Adds `simple_statistics.quantile()`
|
610 | * Adds `simple_statistics.mixin()`
|
611 | * Adds `simple_statistics.geometricMean()`
|
612 | * Adds `simple_statistics.sampleVariance()`
|
613 | * Adds `simple_statistics.sampleCovariance()`
|
614 |
|
615 | ## 0.1.0
|
616 |
|
617 | * Adds `simple_statistics.tTest()`
|
618 | * Adds `simple_statistics.min()`
|
619 | * Adds `simple_statistics.max()`
|