Skip to content

API Reference

fastloess


fastloess / OnlineLoess

Defined in: index.d.ts:75

Online LOESS smoother for real-time data.

new OnlineLoess(options?, onlineOpts?): OnlineLoess

Defined in: index.d.ts:77

Create a new online LOESS smoother.

OnlineSmoothOptions | null

OnlineOptions | null

OnlineLoess

add_point(x, y, weight?): OnlineOutput | null

Defined in: index.d.ts:79

Add a single point and get the smoothed value if enough points are available.

number

number

number | null

OnlineOutput | null


add_point_vector(x, y, weight?): OnlineOutput | null

Defined in: index.d.ts:81

Add a point with one coordinate per configured predictor dimension.

Float64Array

number

number | null

OnlineOutput | null


predict_window(newX, options?): PredictOutput

Defined in: index.d.ts:85

Predict query points using a fitted model of the current sliding window.

Float64Array

PredictOptions | null

PredictOutput


window_diagnostics(): Diagnostics | null

Defined in: index.d.ts:83

Compute diagnostics for the current sliding window on demand.

Diagnostics | null