fastlowess-wasm 1.2.0 → 2.0.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.
@@ -2,7 +2,6 @@
2
2
 
3
3
  export class Diagnostics {
4
4
  static __wrap(ptr) {
5
- ptr = ptr >>> 0;
6
5
  const obj = Object.create(Diagnostics.prototype);
7
6
  obj.__wbg_ptr = ptr;
8
7
  DiagnosticsFinalization.register(obj, obj.__wbg_ptr, obj);
@@ -35,8 +34,8 @@ export class Diagnostics {
35
34
  /**
36
35
  * @returns {number | undefined}
37
36
  */
38
- get effectiveDf() {
39
- const ret = wasm.__wbg_get_diagnostics_effectiveDf(this.__wbg_ptr);
37
+ get effective_df() {
38
+ const ret = wasm.__wbg_get_diagnostics_effective_df(this.__wbg_ptr);
40
39
  return ret[0] === 0 ? undefined : ret[1];
41
40
  }
42
41
  /**
@@ -49,15 +48,15 @@ export class Diagnostics {
49
48
  /**
50
49
  * @returns {number}
51
50
  */
52
- get rSquared() {
53
- const ret = wasm.__wbg_get_diagnostics_rSquared(this.__wbg_ptr);
51
+ get r_squared() {
52
+ const ret = wasm.__wbg_get_diagnostics_r_squared(this.__wbg_ptr);
54
53
  return ret;
55
54
  }
56
55
  /**
57
56
  * @returns {number}
58
57
  */
59
- get residualSd() {
60
- const ret = wasm.__wbg_get_diagnostics_residualSd(this.__wbg_ptr);
58
+ get residual_sd() {
59
+ const ret = wasm.__wbg_get_diagnostics_residual_sd(this.__wbg_ptr);
61
60
  return ret;
62
61
  }
63
62
  /**
@@ -82,8 +81,8 @@ export class Diagnostics {
82
81
  /**
83
82
  * @param {number | null} [arg0]
84
83
  */
85
- set effectiveDf(arg0) {
86
- wasm.__wbg_set_diagnostics_effectiveDf(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? 0 : arg0);
84
+ set effective_df(arg0) {
85
+ wasm.__wbg_set_diagnostics_effective_df(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? 0 : arg0);
87
86
  }
88
87
  /**
89
88
  * @param {number} arg0
@@ -94,14 +93,14 @@ export class Diagnostics {
94
93
  /**
95
94
  * @param {number} arg0
96
95
  */
97
- set rSquared(arg0) {
98
- wasm.__wbg_set_diagnostics_rSquared(this.__wbg_ptr, arg0);
96
+ set r_squared(arg0) {
97
+ wasm.__wbg_set_diagnostics_r_squared(this.__wbg_ptr, arg0);
99
98
  }
100
99
  /**
101
100
  * @param {number} arg0
102
101
  */
103
- set residualSd(arg0) {
104
- wasm.__wbg_set_diagnostics_residualSd(this.__wbg_ptr, arg0);
102
+ set residual_sd(arg0) {
103
+ wasm.__wbg_set_diagnostics_residual_sd(this.__wbg_ptr, arg0);
105
104
  }
106
105
  /**
107
106
  * @param {number} arg0
@@ -112,307 +111,372 @@ export class Diagnostics {
112
111
  }
113
112
  if (Symbol.dispose) Diagnostics.prototype[Symbol.dispose] = Diagnostics.prototype.free;
114
113
 
115
- export class LowessResultWasm {
114
+ export class Lowess {
115
+ __destroy_into_raw() {
116
+ const ptr = this.__wbg_ptr;
117
+ this.__wbg_ptr = 0;
118
+ LowessFinalization.unregister(this);
119
+ return ptr;
120
+ }
121
+ free() {
122
+ const ptr = this.__destroy_into_raw();
123
+ wasm.__wbg_lowess_free(ptr, 0);
124
+ }
125
+ /**
126
+ * Fit the model to data and return smoothed values.
127
+ * @param {Float64Array} x
128
+ * @param {Float64Array} y
129
+ * @param {Float64Array | null} [customWeights]
130
+ * @returns {LowessResult}
131
+ */
132
+ fit(x, y, customWeights) {
133
+ var ptr0 = isLikeNone(customWeights) ? 0 : passArrayF64ToWasm0(customWeights, wasm.__wbindgen_malloc);
134
+ var len0 = WASM_VECTOR_LEN;
135
+ const ret = wasm.lowess_fit(this.__wbg_ptr, x, y, ptr0, len0);
136
+ if (ret[2]) {
137
+ throw takeFromExternrefTable0(ret[1]);
138
+ }
139
+ return LowessResult.__wrap(ret[0]);
140
+ }
141
+ /**
142
+ * Create a new `Lowess` model with the given options.
143
+ * @param {any} options
144
+ */
145
+ constructor(options) {
146
+ const ret = wasm.lowess_new(options);
147
+ this.__wbg_ptr = ret;
148
+ LowessFinalization.register(this, this.__wbg_ptr, this);
149
+ return this;
150
+ }
151
+ }
152
+ if (Symbol.dispose) Lowess.prototype[Symbol.dispose] = Lowess.prototype.free;
153
+
154
+ export class LowessResult {
116
155
  static __wrap(ptr) {
117
- ptr = ptr >>> 0;
118
- const obj = Object.create(LowessResultWasm.prototype);
156
+ const obj = Object.create(LowessResult.prototype);
119
157
  obj.__wbg_ptr = ptr;
120
- LowessResultWasmFinalization.register(obj, obj.__wbg_ptr, obj);
158
+ LowessResultFinalization.register(obj, obj.__wbg_ptr, obj);
121
159
  return obj;
122
160
  }
123
161
  __destroy_into_raw() {
124
162
  const ptr = this.__wbg_ptr;
125
163
  this.__wbg_ptr = 0;
126
- LowessResultWasmFinalization.unregister(this);
164
+ LowessResultFinalization.unregister(this);
127
165
  return ptr;
128
166
  }
129
167
  free() {
130
168
  const ptr = this.__destroy_into_raw();
131
- wasm.__wbg_lowessresultwasm_free(ptr, 0);
169
+ wasm.__wbg_lowessresult_free(ptr, 0);
132
170
  }
133
171
  /**
134
172
  * @returns {Float64Array | undefined}
135
173
  */
136
- get confidenceLower() {
137
- const ret = wasm.lowessresultwasm_confidenceLower(this.__wbg_ptr);
174
+ get confidence_lower() {
175
+ const ret = wasm.lowessresult_confidence_lower(this.__wbg_ptr);
138
176
  return ret;
139
177
  }
140
178
  /**
141
179
  * @returns {Float64Array | undefined}
142
180
  */
143
- get confidenceUpper() {
144
- const ret = wasm.lowessresultwasm_confidenceUpper(this.__wbg_ptr);
181
+ get confidence_upper() {
182
+ const ret = wasm.lowessresult_confidence_upper(this.__wbg_ptr);
145
183
  return ret;
146
184
  }
147
185
  /**
148
186
  * @returns {Float64Array | undefined}
149
187
  */
150
- get cvScores() {
151
- const ret = wasm.lowessresultwasm_cvScores(this.__wbg_ptr);
188
+ get cv_scores() {
189
+ const ret = wasm.lowessresult_cv_scores(this.__wbg_ptr);
152
190
  return ret;
153
191
  }
154
192
  /**
155
193
  * @returns {Diagnostics | undefined}
156
194
  */
157
195
  get diagnostics() {
158
- const ret = wasm.lowessresultwasm_diagnostics(this.__wbg_ptr);
196
+ const ret = wasm.lowessresult_diagnostics(this.__wbg_ptr);
159
197
  return ret === 0 ? undefined : Diagnostics.__wrap(ret);
160
198
  }
161
199
  /**
162
200
  * @returns {number}
163
201
  */
164
- get fractionUsed() {
165
- const ret = wasm.lowessresultwasm_fractionUsed(this.__wbg_ptr);
202
+ get fraction_used() {
203
+ const ret = wasm.lowessresult_fraction_used(this.__wbg_ptr);
166
204
  return ret;
167
205
  }
168
206
  /**
169
207
  * @returns {number | undefined}
170
208
  */
171
- get iterationsUsed() {
172
- const ret = wasm.lowessresultwasm_iterationsUsed(this.__wbg_ptr);
173
- return ret === 0x100000001 ? undefined : ret;
209
+ get iterations_used() {
210
+ const ret = wasm.lowessresult_iterations_used(this.__wbg_ptr);
211
+ return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
174
212
  }
175
213
  /**
176
214
  * @returns {Float64Array | undefined}
177
215
  */
178
- get predictionLower() {
179
- const ret = wasm.lowessresultwasm_predictionLower(this.__wbg_ptr);
216
+ get prediction_lower() {
217
+ const ret = wasm.lowessresult_prediction_lower(this.__wbg_ptr);
180
218
  return ret;
181
219
  }
182
220
  /**
183
221
  * @returns {Float64Array | undefined}
184
222
  */
185
- get predictionUpper() {
186
- const ret = wasm.lowessresultwasm_predictionUpper(this.__wbg_ptr);
223
+ get prediction_upper() {
224
+ const ret = wasm.lowessresult_prediction_upper(this.__wbg_ptr);
187
225
  return ret;
188
226
  }
189
227
  /**
190
228
  * @returns {Float64Array | undefined}
191
229
  */
192
230
  get residuals() {
193
- const ret = wasm.lowessresultwasm_residuals(this.__wbg_ptr);
231
+ const ret = wasm.lowessresult_residuals(this.__wbg_ptr);
194
232
  return ret;
195
233
  }
196
234
  /**
197
235
  * @returns {Float64Array | undefined}
198
236
  */
199
- get robustnessWeights() {
200
- const ret = wasm.lowessresultwasm_robustnessWeights(this.__wbg_ptr);
237
+ get robustness_weights() {
238
+ const ret = wasm.lowessresult_robustness_weights(this.__wbg_ptr);
201
239
  return ret;
202
240
  }
203
241
  /**
204
242
  * @returns {Float64Array | undefined}
205
243
  */
206
- get standardErrors() {
207
- const ret = wasm.lowessresultwasm_standardErrors(this.__wbg_ptr);
244
+ get standard_errors() {
245
+ const ret = wasm.lowessresult_standard_errors(this.__wbg_ptr);
208
246
  return ret;
209
247
  }
210
248
  /**
211
249
  * @returns {Float64Array}
212
250
  */
213
251
  get x() {
214
- const ret = wasm.lowessresultwasm_x(this.__wbg_ptr);
252
+ const ret = wasm.lowessresult_x(this.__wbg_ptr);
215
253
  return ret;
216
254
  }
217
255
  /**
218
256
  * @returns {Float64Array}
219
257
  */
220
258
  get y() {
221
- const ret = wasm.lowessresultwasm_y(this.__wbg_ptr);
259
+ const ret = wasm.lowessresult_y(this.__wbg_ptr);
222
260
  return ret;
223
261
  }
224
262
  }
225
- if (Symbol.dispose) LowessResultWasm.prototype[Symbol.dispose] = LowessResultWasm.prototype.free;
263
+ if (Symbol.dispose) LowessResult.prototype[Symbol.dispose] = LowessResult.prototype.free;
226
264
 
227
- /**
228
- * Online LOWESS smoother.
229
- */
230
- export class OnlineLowessWasm {
265
+ export class OnlineLowess {
231
266
  __destroy_into_raw() {
232
267
  const ptr = this.__wbg_ptr;
233
268
  this.__wbg_ptr = 0;
234
- OnlineLowessWasmFinalization.unregister(this);
269
+ OnlineLowessFinalization.unregister(this);
235
270
  return ptr;
236
271
  }
237
272
  free() {
238
273
  const ptr = this.__destroy_into_raw();
239
- wasm.__wbg_onlinelowesswasm_free(ptr, 0);
274
+ wasm.__wbg_onlinelowess_free(ptr, 0);
275
+ }
276
+ /**
277
+ * @param {number} x
278
+ * @param {number} y
279
+ * @returns {OnlineOutput | undefined}
280
+ */
281
+ add_point(x, y) {
282
+ const ret = wasm.onlinelowess_add_point(this.__wbg_ptr, x, y);
283
+ if (ret[2]) {
284
+ throw takeFromExternrefTable0(ret[1]);
285
+ }
286
+ return ret[0] === 0 ? undefined : OnlineOutput.__wrap(ret[0]);
240
287
  }
241
288
  /**
242
- * Create a new online smoother.
243
289
  * @param {any} options
244
- * @param {any} online_opts
290
+ * @param {any} onlineOpts
245
291
  */
246
- constructor(options, online_opts) {
247
- const ret = wasm.onlinelowesswasm_new(options, online_opts);
292
+ constructor(options, onlineOpts) {
293
+ const ret = wasm.onlinelowess_new(options, onlineOpts);
248
294
  if (ret[2]) {
249
295
  throw takeFromExternrefTable0(ret[1]);
250
296
  }
251
- this.__wbg_ptr = ret[0] >>> 0;
252
- OnlineLowessWasmFinalization.register(this, this.__wbg_ptr, this);
297
+ this.__wbg_ptr = ret[0];
298
+ OnlineLowessFinalization.register(this, this.__wbg_ptr, this);
253
299
  return this;
254
300
  }
301
+ }
302
+ if (Symbol.dispose) OnlineLowess.prototype[Symbol.dispose] = OnlineLowess.prototype.free;
303
+
304
+ export class OnlineOutput {
305
+ static __wrap(ptr) {
306
+ const obj = Object.create(OnlineOutput.prototype);
307
+ obj.__wbg_ptr = ptr;
308
+ OnlineOutputFinalization.register(obj, obj.__wbg_ptr, obj);
309
+ return obj;
310
+ }
311
+ __destroy_into_raw() {
312
+ const ptr = this.__wbg_ptr;
313
+ this.__wbg_ptr = 0;
314
+ OnlineOutputFinalization.unregister(this);
315
+ return ptr;
316
+ }
317
+ free() {
318
+ const ptr = this.__destroy_into_raw();
319
+ wasm.__wbg_onlineoutput_free(ptr, 0);
320
+ }
255
321
  /**
256
- * @param {number} x
257
- * @param {number} y
258
322
  * @returns {number | undefined}
259
323
  */
260
- update(x, y) {
261
- const ret = wasm.onlinelowesswasm_update(this.__wbg_ptr, x, y);
262
- if (ret[3]) {
263
- throw takeFromExternrefTable0(ret[2]);
264
- }
324
+ get iterations_used() {
325
+ const ret = wasm.onlineoutput_iterations_used(this.__wbg_ptr);
326
+ return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
327
+ }
328
+ /**
329
+ * @returns {number | undefined}
330
+ */
331
+ get residual() {
332
+ const ret = wasm.onlineoutput_residual(this.__wbg_ptr);
333
+ return ret[0] === 0 ? undefined : ret[1];
334
+ }
335
+ /**
336
+ * @returns {number | undefined}
337
+ */
338
+ get robustness_weight() {
339
+ const ret = wasm.onlineoutput_robustness_weight(this.__wbg_ptr);
340
+ return ret[0] === 0 ? undefined : ret[1];
341
+ }
342
+ /**
343
+ * @returns {number}
344
+ */
345
+ get smoothed() {
346
+ const ret = wasm.onlineoutput_smoothed(this.__wbg_ptr);
347
+ return ret;
348
+ }
349
+ /**
350
+ * @returns {number | undefined}
351
+ */
352
+ get std_error() {
353
+ const ret = wasm.onlineoutput_std_error(this.__wbg_ptr);
265
354
  return ret[0] === 0 ? undefined : ret[1];
266
355
  }
267
356
  }
268
- if (Symbol.dispose) OnlineLowessWasm.prototype[Symbol.dispose] = OnlineLowessWasm.prototype.free;
357
+ if (Symbol.dispose) OnlineOutput.prototype[Symbol.dispose] = OnlineOutput.prototype.free;
269
358
 
270
- /**
271
- * Streaming LOWESS smoother.
272
- */
273
- export class StreamingLowessWasm {
359
+ export class StreamingLowess {
274
360
  __destroy_into_raw() {
275
361
  const ptr = this.__wbg_ptr;
276
362
  this.__wbg_ptr = 0;
277
- StreamingLowessWasmFinalization.unregister(this);
363
+ StreamingLowessFinalization.unregister(this);
278
364
  return ptr;
279
365
  }
280
366
  free() {
281
367
  const ptr = this.__destroy_into_raw();
282
- wasm.__wbg_streaminglowesswasm_free(ptr, 0);
368
+ wasm.__wbg_streaminglowess_free(ptr, 0);
283
369
  }
284
370
  /**
285
- * @returns {LowessResultWasm}
371
+ * @returns {LowessResult}
286
372
  */
287
373
  finalize() {
288
- const ret = wasm.streaminglowesswasm_finalize(this.__wbg_ptr);
374
+ const ret = wasm.streaminglowess_finalize(this.__wbg_ptr);
289
375
  if (ret[2]) {
290
376
  throw takeFromExternrefTable0(ret[1]);
291
377
  }
292
- return LowessResultWasm.__wrap(ret[0]);
378
+ return LowessResult.__wrap(ret[0]);
293
379
  }
294
380
  /**
295
- * Create a new streaming smoother.
296
381
  * @param {any} options
297
- * @param {any} streaming_opts
382
+ * @param {any} streamingOpts
298
383
  */
299
- constructor(options, streaming_opts) {
300
- const ret = wasm.streaminglowesswasm_new(options, streaming_opts);
384
+ constructor(options, streamingOpts) {
385
+ const ret = wasm.streaminglowess_new(options, streamingOpts);
301
386
  if (ret[2]) {
302
387
  throw takeFromExternrefTable0(ret[1]);
303
388
  }
304
- this.__wbg_ptr = ret[0] >>> 0;
305
- StreamingLowessWasmFinalization.register(this, this.__wbg_ptr, this);
389
+ this.__wbg_ptr = ret[0];
390
+ StreamingLowessFinalization.register(this, this.__wbg_ptr, this);
306
391
  return this;
307
392
  }
308
393
  /**
309
394
  * @param {Float64Array} x
310
395
  * @param {Float64Array} y
311
- * @returns {LowessResultWasm}
396
+ * @returns {LowessResult}
312
397
  */
313
- processChunk(x, y) {
314
- const ret = wasm.streaminglowesswasm_processChunk(this.__wbg_ptr, x, y);
398
+ process_chunk(x, y) {
399
+ const ret = wasm.streaminglowess_process_chunk(this.__wbg_ptr, x, y);
315
400
  if (ret[2]) {
316
401
  throw takeFromExternrefTable0(ret[1]);
317
402
  }
318
- return LowessResultWasm.__wrap(ret[0]);
403
+ return LowessResult.__wrap(ret[0]);
319
404
  }
320
405
  }
321
- if (Symbol.dispose) StreamingLowessWasm.prototype[Symbol.dispose] = StreamingLowessWasm.prototype.free;
406
+ if (Symbol.dispose) StreamingLowess.prototype[Symbol.dispose] = StreamingLowess.prototype.free;
322
407
 
323
408
  export function init_panic_hook() {
324
409
  wasm.init_panic_hook();
325
410
  }
326
-
327
- /**
328
- * Fit the LOWESS model to data.
329
- *
330
- * @param {Float64Array} x - X coordinates.
331
- * @param {Float64Array} y - Y coordinates.
332
- * @param {any} [options] - Configuration object.
333
- * @returns {LowessResultWasm} The result of the smoothing.
334
- * @param {Float64Array} x
335
- * @param {Float64Array} y
336
- * @param {any} options
337
- * @returns {LowessResultWasm}
338
- */
339
- export function smooth(x, y, options) {
340
- const ret = wasm.smooth(x, y, options);
341
- if (ret[2]) {
342
- throw takeFromExternrefTable0(ret[1]);
343
- }
344
- return LowessResultWasm.__wrap(ret[0]);
345
- }
346
-
347
411
  function __wbg_get_imports() {
348
412
  const import0 = {
349
413
  __proto__: null,
350
- __wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
414
+ __wbg_Error_92b29b0548f8b746: function(arg0, arg1) {
351
415
  const ret = Error(getStringFromWasm0(arg0, arg1));
352
416
  return ret;
353
417
  },
354
- __wbg_Number_a5a435bd7bbec835: function(arg0) {
418
+ __wbg_Number_9a4e0ecb0fa16705: function(arg0) {
355
419
  const ret = Number(arg0);
356
420
  return ret;
357
421
  },
358
- __wbg___wbindgen_bigint_get_as_i64_447a76b5c6ef7bda: function(arg0, arg1) {
422
+ __wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f: function(arg0, arg1) {
359
423
  const v = arg1;
360
424
  const ret = typeof(v) === 'bigint' ? v : undefined;
361
425
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
362
426
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
363
427
  },
364
- __wbg___wbindgen_boolean_get_c0f3f60bac5a78d1: function(arg0) {
428
+ __wbg___wbindgen_boolean_get_fa956cfa2d1bd751: function(arg0) {
365
429
  const v = arg0;
366
430
  const ret = typeof(v) === 'boolean' ? v : undefined;
367
431
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
368
432
  },
369
- __wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
433
+ __wbg___wbindgen_debug_string_c25d447a39f5578f: function(arg0, arg1) {
370
434
  const ret = debugString(arg1);
371
435
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
372
436
  const len1 = WASM_VECTOR_LEN;
373
437
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
374
438
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
375
439
  },
376
- __wbg___wbindgen_in_41dbb8413020e076: function(arg0, arg1) {
440
+ __wbg___wbindgen_in_aca499c5de7ff5e5: function(arg0, arg1) {
377
441
  const ret = arg0 in arg1;
378
442
  return ret;
379
443
  },
380
- __wbg___wbindgen_is_bigint_e2141d4f045b7eda: function(arg0) {
444
+ __wbg___wbindgen_is_bigint_2f76dc55065b4273: function(arg0) {
381
445
  const ret = typeof(arg0) === 'bigint';
382
446
  return ret;
383
447
  },
384
- __wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
448
+ __wbg___wbindgen_is_function_1ff95bcc5517c252: function(arg0) {
385
449
  const ret = typeof(arg0) === 'function';
386
450
  return ret;
387
451
  },
388
- __wbg___wbindgen_is_null_0b605fc6b167c56f: function(arg0) {
452
+ __wbg___wbindgen_is_null_ea9085d691f535d3: function(arg0) {
389
453
  const ret = arg0 === null;
390
454
  return ret;
391
455
  },
392
- __wbg___wbindgen_is_object_781bc9f159099513: function(arg0) {
456
+ __wbg___wbindgen_is_object_a27215656b807791: function(arg0) {
393
457
  const val = arg0;
394
458
  const ret = typeof(val) === 'object' && val !== null;
395
459
  return ret;
396
460
  },
397
- __wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
461
+ __wbg___wbindgen_is_undefined_c05833b95a3cf397: function(arg0) {
398
462
  const ret = arg0 === undefined;
399
463
  return ret;
400
464
  },
401
- __wbg___wbindgen_jsval_eq_ee31bfad3e536463: function(arg0, arg1) {
465
+ __wbg___wbindgen_jsval_eq_e659fcf7b0e32763: function(arg0, arg1) {
402
466
  const ret = arg0 === arg1;
403
467
  return ret;
404
468
  },
405
- __wbg___wbindgen_jsval_loose_eq_5bcc3bed3c69e72b: function(arg0, arg1) {
469
+ __wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170: function(arg0, arg1) {
406
470
  const ret = arg0 == arg1;
407
471
  return ret;
408
472
  },
409
- __wbg___wbindgen_number_get_34bb9d9dcfa21373: function(arg0, arg1) {
473
+ __wbg___wbindgen_number_get_394265ed1e1b84ee: function(arg0, arg1) {
410
474
  const obj = arg1;
411
475
  const ret = typeof(obj) === 'number' ? obj : undefined;
412
476
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
413
477
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
414
478
  },
415
- __wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
479
+ __wbg___wbindgen_string_get_b0ca35b86a603356: function(arg0, arg1) {
416
480
  const obj = arg1;
417
481
  const ret = typeof(obj) === 'string' ? obj : undefined;
418
482
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -420,14 +484,14 @@ function __wbg_get_imports() {
420
484
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
421
485
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
422
486
  },
423
- __wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
487
+ __wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
424
488
  throw new Error(getStringFromWasm0(arg0, arg1));
425
489
  },
426
- __wbg_call_e133b57c9155d22c: function() { return handleError(function (arg0, arg1) {
490
+ __wbg_call_8a2dd23819f8a60a: function() { return handleError(function (arg0, arg1) {
427
491
  const ret = arg0.call(arg1);
428
492
  return ret;
429
493
  }, arguments); },
430
- __wbg_done_08ce71ee07e3bd17: function(arg0) {
494
+ __wbg_done_89b2b13e91a60321: function(arg0) {
431
495
  const ret = arg0.done;
432
496
  return ret;
433
497
  },
@@ -442,11 +506,11 @@ function __wbg_get_imports() {
442
506
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
443
507
  }
444
508
  },
445
- __wbg_get_326e41e095fb2575: function() { return handleError(function (arg0, arg1) {
509
+ __wbg_get_c7eb1f358a7654df: function() { return handleError(function (arg0, arg1) {
446
510
  const ret = Reflect.get(arg0, arg1);
447
511
  return ret;
448
512
  }, arguments); },
449
- __wbg_get_unchecked_329cfe50afab7352: function(arg0, arg1) {
513
+ __wbg_get_unchecked_6e0ad6d2a41b06f6: function(arg0, arg1) {
450
514
  const ret = arg0[arg1 >>> 0];
451
515
  return ret;
452
516
  },
@@ -454,7 +518,7 @@ function __wbg_get_imports() {
454
518
  const ret = arg0[arg1];
455
519
  return ret;
456
520
  },
457
- __wbg_instanceof_ArrayBuffer_101e2bf31071a9f6: function(arg0) {
521
+ __wbg_instanceof_ArrayBuffer_4480b9e0068a8adb: function(arg0) {
458
522
  let result;
459
523
  try {
460
524
  result = arg0 instanceof ArrayBuffer;
@@ -464,7 +528,7 @@ function __wbg_get_imports() {
464
528
  const ret = result;
465
529
  return ret;
466
530
  },
467
- __wbg_instanceof_Uint8Array_740438561a5b956d: function(arg0) {
531
+ __wbg_instanceof_Uint8Array_309b927aaf7a3fc7: function(arg0) {
468
532
  let result;
469
533
  try {
470
534
  result = arg0 instanceof Uint8Array;
@@ -474,27 +538,27 @@ function __wbg_get_imports() {
474
538
  const ret = result;
475
539
  return ret;
476
540
  },
477
- __wbg_isArray_33b91feb269ff46e: function(arg0) {
541
+ __wbg_isArray_0677c962b281d01a: function(arg0) {
478
542
  const ret = Array.isArray(arg0);
479
543
  return ret;
480
544
  },
481
- __wbg_isSafeInteger_ecd6a7f9c3e053cd: function(arg0) {
545
+ __wbg_isSafeInteger_04f36e4056f1b851: function(arg0) {
482
546
  const ret = Number.isSafeInteger(arg0);
483
547
  return ret;
484
548
  },
485
- __wbg_iterator_d8f549ec8fb061b1: function() {
549
+ __wbg_iterator_6f722e4a93058b71: function() {
486
550
  const ret = Symbol.iterator;
487
551
  return ret;
488
552
  },
489
- __wbg_length_550d8a396009cd38: function(arg0) {
553
+ __wbg_length_0133fa10e3234c57: function(arg0) {
490
554
  const ret = arg0.length;
491
555
  return ret;
492
556
  },
493
- __wbg_length_b3416cf66a5452c8: function(arg0) {
557
+ __wbg_length_1f0964f4a5e2c6d8: function(arg0) {
494
558
  const ret = arg0.length;
495
559
  return ret;
496
560
  },
497
- __wbg_length_ea16607d7b61445b: function(arg0) {
561
+ __wbg_length_370319915dc99107: function(arg0) {
498
562
  const ret = arg0.length;
499
563
  return ret;
500
564
  },
@@ -502,22 +566,22 @@ function __wbg_get_imports() {
502
566
  const ret = new Error();
503
567
  return ret;
504
568
  },
505
- __wbg_new_5f486cdf45a04d78: function(arg0) {
569
+ __wbg_new_cd45aabdf6073e84: function(arg0) {
506
570
  const ret = new Uint8Array(arg0);
507
571
  return ret;
508
572
  },
509
- __wbg_next_11b99ee6237339e3: function() { return handleError(function (arg0) {
510
- const ret = arg0.next();
511
- return ret;
512
- }, arguments); },
513
- __wbg_next_e01a967809d1aa68: function(arg0) {
573
+ __wbg_next_6dbf2c0ac8cde20f: function(arg0) {
514
574
  const ret = arg0.next;
515
575
  return ret;
516
576
  },
517
- __wbg_prototypesetcall_79daf97fb14c7a19: function(arg0, arg1, arg2) {
577
+ __wbg_next_71f2aa1cb3d1e37e: function() { return handleError(function (arg0) {
578
+ const ret = arg0.next();
579
+ return ret;
580
+ }, arguments); },
581
+ __wbg_prototypesetcall_21a175a0a8157491: function(arg0, arg1, arg2) {
518
582
  Float64Array.prototype.set.call(getArrayF64FromWasm0(arg0, arg1), arg2);
519
583
  },
520
- __wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
584
+ __wbg_prototypesetcall_4770620bbe4688a0: function(arg0, arg1, arg2) {
521
585
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
522
586
  },
523
587
  __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
@@ -527,7 +591,7 @@ function __wbg_get_imports() {
527
591
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
528
592
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
529
593
  },
530
- __wbg_value_21fc78aab0322612: function(arg0) {
594
+ __wbg_value_a5d5488a9589444a: function(arg0) {
531
595
  const ret = arg0.value;
532
596
  return ret;
533
597
  },
@@ -564,16 +628,22 @@ function __wbg_get_imports() {
564
628
 
565
629
  const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
566
630
  ? { register: () => {}, unregister: () => {} }
567
- : new FinalizationRegistry(ptr => wasm.__wbg_diagnostics_free(ptr >>> 0, 1));
568
- const LowessResultWasmFinalization = (typeof FinalizationRegistry === 'undefined')
631
+ : new FinalizationRegistry(ptr => wasm.__wbg_diagnostics_free(ptr, 1));
632
+ const LowessFinalization = (typeof FinalizationRegistry === 'undefined')
633
+ ? { register: () => {}, unregister: () => {} }
634
+ : new FinalizationRegistry(ptr => wasm.__wbg_lowess_free(ptr, 1));
635
+ const LowessResultFinalization = (typeof FinalizationRegistry === 'undefined')
569
636
  ? { register: () => {}, unregister: () => {} }
570
- : new FinalizationRegistry(ptr => wasm.__wbg_lowessresultwasm_free(ptr >>> 0, 1));
571
- const OnlineLowessWasmFinalization = (typeof FinalizationRegistry === 'undefined')
637
+ : new FinalizationRegistry(ptr => wasm.__wbg_lowessresult_free(ptr, 1));
638
+ const OnlineLowessFinalization = (typeof FinalizationRegistry === 'undefined')
572
639
  ? { register: () => {}, unregister: () => {} }
573
- : new FinalizationRegistry(ptr => wasm.__wbg_onlinelowesswasm_free(ptr >>> 0, 1));
574
- const StreamingLowessWasmFinalization = (typeof FinalizationRegistry === 'undefined')
640
+ : new FinalizationRegistry(ptr => wasm.__wbg_onlinelowess_free(ptr, 1));
641
+ const OnlineOutputFinalization = (typeof FinalizationRegistry === 'undefined')
575
642
  ? { register: () => {}, unregister: () => {} }
576
- : new FinalizationRegistry(ptr => wasm.__wbg_streaminglowesswasm_free(ptr >>> 0, 1));
643
+ : new FinalizationRegistry(ptr => wasm.__wbg_onlineoutput_free(ptr, 1));
644
+ const StreamingLowessFinalization = (typeof FinalizationRegistry === 'undefined')
645
+ ? { register: () => {}, unregister: () => {} }
646
+ : new FinalizationRegistry(ptr => wasm.__wbg_streaminglowess_free(ptr, 1));
577
647
 
578
648
  function addToExternrefTable0(obj) {
579
649
  const idx = wasm.__externref_table_alloc();
@@ -673,8 +743,7 @@ function getFloat64ArrayMemory0() {
673
743
  }
674
744
 
675
745
  function getStringFromWasm0(ptr, len) {
676
- ptr = ptr >>> 0;
677
- return decodeText(ptr, len);
746
+ return decodeText(ptr >>> 0, len);
678
747
  }
679
748
 
680
749
  let cachedUint8ArrayMemory0 = null;
@@ -698,6 +767,13 @@ function isLikeNone(x) {
698
767
  return x === undefined || x === null;
699
768
  }
700
769
 
770
+ function passArrayF64ToWasm0(arg, malloc) {
771
+ const ptr = malloc(arg.length * 8, 8) >>> 0;
772
+ getFloat64ArrayMemory0().set(arg, ptr / 8);
773
+ WASM_VECTOR_LEN = arg.length;
774
+ return ptr;
775
+ }
776
+
701
777
  function passStringToWasm0(arg, malloc, realloc) {
702
778
  if (realloc === undefined) {
703
779
  const buf = cachedTextEncoder.encode(arg);
@@ -770,8 +846,9 @@ if (!('encodeInto' in cachedTextEncoder)) {
770
846
 
771
847
  let WASM_VECTOR_LEN = 0;
772
848
 
773
- let wasmModule, wasm;
849
+ let wasmModule, wasmInstance, wasm;
774
850
  function __wbg_finalize_init(instance, module) {
851
+ wasmInstance = instance;
775
852
  wasm = instance.exports;
776
853
  wasmModule = module;
777
854
  cachedDataViewMemory0 = null;