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
|
Line | |
---|
1 | "use strict";
|
---|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
3 | exports.constructorFromBucketSize = void 0;
|
---|
4 | const PackedHistogram_1 = require("./PackedHistogram");
|
---|
5 | const Int8Histogram_1 = require("./Int8Histogram");
|
---|
6 | const Int16Histogram_1 = require("./Int16Histogram");
|
---|
7 | const Int32Histogram_1 = require("./Int32Histogram");
|
---|
8 | const Float64Histogram_1 = require("./Float64Histogram");
|
---|
9 | function 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 | }
|
---|
25 | exports.constructorFromBucketSize = constructorFromBucketSize;
|
---|
26 | //# sourceMappingURL=JsHistogramFactory.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.