API Reference
fastloess-wasm / OnlineLoess
Class: OnlineLoess
Section titled “Class: OnlineLoess”Defined in: fastloess_wasm.d.ts:216
Online LOESS smoother for real-time data.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new OnlineLoess(
options?,onlineOpts?):OnlineLoess
Defined in: fastloess_wasm.d.ts:218
Parameters
Section titled “Parameters”options?
Section titled “options?”onlineOpts?
Section titled “onlineOpts?”Returns
Section titled “Returns”OnlineLoess
Methods
Section titled “Methods”add_point()
Section titled “add_point()”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.
Parameters
Section titled “Parameters”number
number
Returns
Section titled “Returns”OnlineOutput | null
add_point_vector()
Section titled “add_point_vector()”add_point_vector(
x,y):OnlineOutput|null
Defined in: fastloess_wasm.d.ts:222
Add a point with one coordinate per configured predictor dimension.
Parameters
Section titled “Parameters”Float64Array
number
Returns
Section titled “Returns”OnlineOutput | null
add_point_vector_weighted()
Section titled “add_point_vector_weighted()”add_point_vector_weighted(
x,y,weight):OnlineOutput|null
Defined in: fastloess_wasm.d.ts:226
Add a coordinate vector with a case weight.
Parameters
Section titled “Parameters”Float64Array
number
weight
Section titled “weight”number
Returns
Section titled “Returns”OnlineOutput | null
add_point_weighted()
Section titled “add_point_weighted()”add_point_weighted(
x,y,weight):OnlineOutput|null
Defined in: fastloess_wasm.d.ts:224
Add a scalar point with a case weight.
Parameters
Section titled “Parameters”number
number
weight
Section titled “weight”number
Returns
Section titled “Returns”OnlineOutput | null
free()
Section titled “free()”free():
void
Defined in: fastloess_wasm.d.ts:217
Returns
Section titled “Returns”void
predict_window()
Section titled “predict_window()”predict_window(
newX,options?):PredictOutput
Defined in: fastloess_wasm.d.ts:230
Predict query points using a fit of the current window.
Parameters
Section titled “Parameters”Float64Array
options?
Section titled “options?”Returns
Section titled “Returns”window_diagnostics()
Section titled “window_diagnostics()”window_diagnostics():
Diagnostics|null
Defined in: fastloess_wasm.d.ts:228
Compute fit diagnostics for the current window, or null before warm-up.
Returns
Section titled “Returns”Diagnostics | null