source: trip-planner-front/node_modules/hdr-histogram-js/dist/JsHistogramFactory.js@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 993 bytes
RevLine 
[6a3a178]1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.constructorFromBucketSize = void 0;
4const PackedHistogram_1 = require("./PackedHistogram");
5const Int8Histogram_1 = require("./Int8Histogram");
6const Int16Histogram_1 = require("./Int16Histogram");
7const Int32Histogram_1 = require("./Int32Histogram");
8const Float64Histogram_1 = require("./Float64Histogram");
9function constructorFromBucketSize(bitBucketSize) {
10 switch (bitBucketSize) {
11 case "packed":
12 return PackedHistogram_1.default;
13 case 8:
14 return Int8Histogram_1.default;
15 case 16:
16 return Int16Histogram_1.default;
17 case 32:
18 return Int32Histogram_1.default;
19 case 64:
20 return Float64Histogram_1.default;
21 default:
22 throw new Error("Incorrect parameter bitBucketSize");
23 }
24}
25exports.constructorFromBucketSize = constructorFromBucketSize;
26//# sourceMappingURL=JsHistogramFactory.js.map
Note: See TracBrowser for help on using the repository browser.