API Reference
fastloess / OnlineLoess
Class: OnlineLoess
Section titled “Class: OnlineLoess”Defined in: index.d.ts:75
Online LOESS smoother for real-time data.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new OnlineLoess(
options?,onlineOpts?):OnlineLoess
Defined in: index.d.ts:77
Create a new online LOESS smoother.
Parameters
Section titled “Parameters”options?
Section titled “options?”OnlineSmoothOptions | null
onlineOpts?
Section titled “onlineOpts?”OnlineOptions | null
Returns
Section titled “Returns”OnlineLoess
Methods
Section titled “Methods”add_point()
Section titled “add_point()”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.
Parameters
Section titled “Parameters”number
number
weight?
Section titled “weight?”number | null
Returns
Section titled “Returns”OnlineOutput | null
add_point_vector()
Section titled “add_point_vector()”add_point_vector(
x,y,weight?):OnlineOutput|null
Defined in: index.d.ts:81
Add a point with one coordinate per configured predictor dimension.
Parameters
Section titled “Parameters”Float64Array
number
weight?
Section titled “weight?”number | null
Returns
Section titled “Returns”OnlineOutput | null
predict_window()
Section titled “predict_window()”predict_window(
newX,options?):PredictOutput
Defined in: index.d.ts:85
Predict query points using a fitted model of the current sliding window.
Parameters
Section titled “Parameters”Float64Array
options?
Section titled “options?”PredictOptions | null
Returns
Section titled “Returns”window_diagnostics()
Section titled “window_diagnostics()”window_diagnostics():
Diagnostics|null
Defined in: index.d.ts:83
Compute diagnostics for the current sliding window on demand.
Returns
Section titled “Returns”Diagnostics | null