|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
502 bytes
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 4 | value: true
|
|---|
| 5 | });
|
|---|
| 6 | exports.default = thresholdScott;
|
|---|
| 7 | var _count = _interopRequireDefault(require("../count.js"));
|
|---|
| 8 | var _deviation = _interopRequireDefault(require("../deviation.js"));
|
|---|
| 9 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|---|
| 10 | function thresholdScott(values, min, max) {
|
|---|
| 11 | return Math.ceil((max - min) * Math.cbrt((0, _count.default)(values)) / (3.49 * (0, _deviation.default)(values)));
|
|---|
| 12 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.