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