|
Last change
on this file since a762898 was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Prototype 1.1
|
-
Property mode
set to
100644
|
|
File size:
260 bytes
|
| Line | |
|---|
| 1 | import count from "../count.js";
|
|---|
| 2 | import deviation from "../deviation.js";
|
|---|
| 3 |
|
|---|
| 4 | export default function thresholdScott(values, min, max) {
|
|---|
| 5 | const c = count(values), d = deviation(values);
|
|---|
| 6 | return c && d ? Math.ceil((max - min) * Math.cbrt(c) / (3.49 * d)) : 1;
|
|---|
| 7 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.