Skip to content

API Reference

fastloess-wasm


fastloess-wasm / OnlineLoess

Defined in: fastloess_wasm.d.ts:216

Online LOESS smoother for real-time data.

new OnlineLoess(options?, onlineOpts?): OnlineLoess

Defined in: fastloess_wasm.d.ts:218

OnlineSmoothOptions

OnlineOptions

OnlineLoess

add_point(x, y): OnlineOutput | null

Defined in: fastloess_wasm.d.ts:220

Add a single point and get the smoothed value, or null if not enough points yet.

number

number

OnlineOutput | null


add_point_vector(x, y): OnlineOutput | null

Defined in: fastloess_wasm.d.ts:222

Add a point with one coordinate per configured predictor dimension.

Float64Array

number

OnlineOutput | null


add_point_vector_weighted(x, y, weight): OnlineOutput | null

Defined in: fastloess_wasm.d.ts:226

Add a coordinate vector with a case weight.

Float64Array

number

number

OnlineOutput | null


add_point_weighted(x, y, weight): OnlineOutput | null

Defined in: fastloess_wasm.d.ts:224

Add a scalar point with a case weight.

number

number

number

OnlineOutput | null


free(): void

Defined in: fastloess_wasm.d.ts:217

void


predict_window(newX, options?): PredictOutput

Defined in: fastloess_wasm.d.ts:230

Predict query points using a fit of the current window.

Float64Array

PredictOptions

PredictOutput


window_diagnostics(): Diagnostics | null

Defined in: fastloess_wasm.d.ts:228

Compute fit diagnostics for the current window, or null before warm-up.

Diagnostics | null