source: node_modules/victory-vendor/lib-vendor/d3-array/src/threshold/scott.js

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
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = thresholdScott;
7var _count = _interopRequireDefault(require("../count.js"));
8var _deviation = _interopRequireDefault(require("../deviation.js"));
9function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10function 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.