@danielmcsheehy/isopleth-wasm 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +33 -4
- package/pkg/isopleth_wasm.d.ts +140 -0
- package/pkg/isopleth_wasm.js +1223 -0
- package/pkg/isopleth_wasm_bg.wasm +0 -0
- package/pkg/isopleth_wasm_bg.wasm.d.ts +35 -0
- package/README.md +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danielmcsheehy/isopleth-wasm",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "WebAssembly build of isopleth-core (wasm-bindgen output). Load it with `@danielmcsheehy/isopleth/wasm`.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"main": "./pkg/isopleth_wasm.js",
|
|
8
|
+
"types": "./pkg/isopleth_wasm.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./pkg/isopleth_wasm.d.ts",
|
|
12
|
+
"import": "./pkg/isopleth_wasm.js"
|
|
13
|
+
},
|
|
14
|
+
"./isopleth_wasm_bg.wasm": "./pkg/isopleth_wasm_bg.wasm"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"pkg"
|
|
18
|
+
],
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/DanielMcSheehy/isopleth.git",
|
|
23
|
+
"directory": "packages/wasm"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"isopleth",
|
|
27
|
+
"wasm",
|
|
28
|
+
"echarts",
|
|
29
|
+
"forecasting",
|
|
30
|
+
"anomaly-detection"
|
|
31
|
+
],
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Aggregate `values` by integer `codes` (`< 0` excluded) into `nGroups`
|
|
6
|
+
* buckets with a Plot-style reducer name (`count`, `sum`, `mean`, `p90`, ...).
|
|
7
|
+
* Pass an empty `values` array to reduce over a constant 1 (counts).
|
|
8
|
+
*/
|
|
9
|
+
export function aggregate(codes: Int32Array, values: Float64Array, n_groups: number, reducer: string): Float64Array;
|
|
10
|
+
|
|
11
|
+
export function anomalies(y: Float64Array, opts: any): any;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Bin index per value (`-1` = NaN / out of domain).
|
|
15
|
+
*/
|
|
16
|
+
export function binAssign(values: Float64Array, edges: Float64Array): Int32Array;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Bin edges for `values`. `rule` is one of `auto`, `sturges`, `scott`,
|
|
20
|
+
* `freedman-diaconis`, or `count` (then `count` is the tick-count hint).
|
|
21
|
+
*/
|
|
22
|
+
export function binThresholds(values: Float64Array, rule: string, count: number): Float64Array;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Bin edges at every multiple of `step` spanning the data.
|
|
26
|
+
*/
|
|
27
|
+
export function binThresholdsInterval(values: Float64Array, step: number): Float64Array;
|
|
28
|
+
|
|
29
|
+
export function categoryOutliers(codes: Int32Array, values: Float64Array, n_groups: number, reducer?: string | null, sensitivity?: number | null, threshold?: number | null): any;
|
|
30
|
+
|
|
31
|
+
export function changepoints(y: Float64Array, opts: any): any;
|
|
32
|
+
|
|
33
|
+
export function combineCodes(a: Int32Array, na: number, b: Int32Array, nb: number): Int32Array;
|
|
34
|
+
|
|
35
|
+
export function counts(codes: Int32Array, n_groups: number): Float64Array;
|
|
36
|
+
|
|
37
|
+
export function cumsum(values: Float64Array): Float64Array;
|
|
38
|
+
|
|
39
|
+
export function decompose(y: Float64Array, period: number): any;
|
|
40
|
+
|
|
41
|
+
export function diff(values: Float64Array): Float64Array;
|
|
42
|
+
|
|
43
|
+
export function forecast(y: Float64Array, opts: any): any;
|
|
44
|
+
|
|
45
|
+
export function frequencyOutliers(counts: Float64Array, sensitivity?: number | null, threshold?: number | null): any;
|
|
46
|
+
|
|
47
|
+
export function impute(values: Float64Array, method: string): Float64Array;
|
|
48
|
+
|
|
49
|
+
export function normalize(values: Float64Array, basis: string): Float64Array;
|
|
50
|
+
|
|
51
|
+
export function pctChange(values: Float64Array): Float64Array;
|
|
52
|
+
|
|
53
|
+
export function quantileRank(values: Float64Array): Float64Array;
|
|
54
|
+
|
|
55
|
+
export function rank(values: Float64Array): Float64Array;
|
|
56
|
+
|
|
57
|
+
export function seasonality(y: Float64Array, opts: any): any;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* `series` is a flat row-major `Float64Array` of `nSeries × len` values.
|
|
61
|
+
*/
|
|
62
|
+
export function seriesOutliers(series: Float64Array, n_series: number, method: string, sensitivity?: number | null): any;
|
|
63
|
+
|
|
64
|
+
export function start(): void;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* `d3.ticks` port, exposed so axes and bins agree.
|
|
68
|
+
*/
|
|
69
|
+
export function ticks(start: number, stop: number, count: number): Float64Array;
|
|
70
|
+
|
|
71
|
+
export function trend(x: Float64Array, y: Float64Array, method: string): any;
|
|
72
|
+
|
|
73
|
+
export function version(): string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Rolling window. `anchor` ∈ `start|middle|end`; `reduce` is a reducer name or
|
|
77
|
+
* `difference` / `ratio`.
|
|
78
|
+
*/
|
|
79
|
+
declare function window2(values: Float64Array, k: number, anchor: string, reduce: string, strict: boolean): Float64Array;
|
|
80
|
+
export { window2 as window }
|
|
81
|
+
|
|
82
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
83
|
+
|
|
84
|
+
export interface InitOutput {
|
|
85
|
+
readonly memory: WebAssembly.Memory;
|
|
86
|
+
readonly aggregate: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
87
|
+
readonly anomalies: (a: number, b: number, c: number, d: number) => void;
|
|
88
|
+
readonly binAssign: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
89
|
+
readonly binThresholds: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
90
|
+
readonly binThresholdsInterval: (a: number, b: number, c: number, d: number) => void;
|
|
91
|
+
readonly categoryOutliers: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
|
|
92
|
+
readonly changepoints: (a: number, b: number, c: number, d: number) => void;
|
|
93
|
+
readonly combineCodes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
94
|
+
readonly counts: (a: number, b: number, c: number, d: number) => void;
|
|
95
|
+
readonly cumsum: (a: number, b: number, c: number) => void;
|
|
96
|
+
readonly decompose: (a: number, b: number, c: number, d: number) => void;
|
|
97
|
+
readonly diff: (a: number, b: number, c: number) => void;
|
|
98
|
+
readonly forecast: (a: number, b: number, c: number, d: number) => void;
|
|
99
|
+
readonly frequencyOutliers: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
100
|
+
readonly impute: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
101
|
+
readonly normalize: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
102
|
+
readonly pctChange: (a: number, b: number, c: number) => void;
|
|
103
|
+
readonly quantileRank: (a: number, b: number, c: number) => void;
|
|
104
|
+
readonly rank: (a: number, b: number, c: number) => void;
|
|
105
|
+
readonly seasonality: (a: number, b: number, c: number, d: number) => void;
|
|
106
|
+
readonly seriesOutliers: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
107
|
+
readonly start: () => void;
|
|
108
|
+
readonly ticks: (a: number, b: number, c: number, d: number) => void;
|
|
109
|
+
readonly trend: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
110
|
+
readonly version: (a: number) => void;
|
|
111
|
+
readonly window: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
112
|
+
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
113
|
+
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
114
|
+
readonly __wbindgen_export3: (a: number) => void;
|
|
115
|
+
readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
|
|
116
|
+
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
117
|
+
readonly __wbindgen_start: () => void;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
124
|
+
* a precompiled `WebAssembly.Module`.
|
|
125
|
+
*
|
|
126
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
127
|
+
*
|
|
128
|
+
* @returns {InitOutput}
|
|
129
|
+
*/
|
|
130
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
134
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
135
|
+
*
|
|
136
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
137
|
+
*
|
|
138
|
+
* @returns {Promise<InitOutput>}
|
|
139
|
+
*/
|
|
140
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|