source: node_modules/victory-vendor/lib-vendor/d3-array/src/threshold/sturges.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: 384 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = thresholdSturges;
7var _count = _interopRequireDefault(require("../count.js"));
8function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9function thresholdSturges(values) {
10 return Math.ceil(Math.log((0, _count.default)(values)) / Math.LN2) + 1;
11}
Note: See TracBrowser for help on using the repository browser.