API Reference
fastloess-wasm / SmoothOptions
Interface: SmoothOptions
Section titled “Interface: SmoothOptions”Defined in: fastloess_wasm.d.ts:6
Properties
Section titled “Properties”auto_converge?
Section titled “auto_converge?”
optionalauto_converge?:number
Defined in: fastloess_wasm.d.ts:27
Auto-convergence tolerance. Disabled when absent.
boundary_degree_fallback?
Section titled “boundary_degree_fallback?”
optionalboundary_degree_fallback?:boolean
Defined in: fastloess_wasm.d.ts:45
Fall back to lower polynomial degree at boundaries. Default: true.
boundary_policy?
Section titled “boundary_policy?”
optionalboundary_policy?:string
Defined in: fastloess_wasm.d.ts:23
Boundary handling (“extend”, “reflect”, “zero”, “noboundary”). Default: “extend”.
optionalcell?:number
Defined in: fastloess_wasm.d.ts:41
Cell parameter for interpolation (fraction of data). Default: 0.2.
optionalcv?:object
Defined in: fastloess_wasm.d.ts:11
Grouped batch cross-validation configuration.
fractions
Section titled “fractions”fractions:
number[]
optionalk?:number
method?
Section titled “method?”
optionalmethod?:string
degree?
Section titled “degree?”
optionaldegree?:string
Defined in: fastloess_wasm.d.ts:31
Polynomial degree (“constant”, “linear”, “quadratic”, “cubic”, “quartic”). Default: “linear”.
dimensions?
Section titled “dimensions?”
optionaldimensions?:number
Defined in: fastloess_wasm.d.ts:33
Number of predictor dimensions. Default: 1.
distance_metric?
Section titled “distance_metric?”
optionaldistance_metric?:string
Defined in: fastloess_wasm.d.ts:35
Distance metric (“normalized”, “euclidean”, “manhattan”, “chebyshev”, “minkowski:p”, “weighted”). Default: “normalized”.
fraction?
Section titled “fraction?”
optionalfraction?:number
Defined in: fastloess_wasm.d.ts:13
Smoothing fraction (0 < fraction <= 1). Default: 0.67.
interpolation_vertices?
Section titled “interpolation_vertices?”
optionalinterpolation_vertices?:number
Defined in: fastloess_wasm.d.ts:43
Number of interpolation vertices. Default: auto.
intervals?
Section titled “intervals?”
optionalintervals?:IntervalsOptions
Defined in: fastloess_wasm.d.ts:9
iterations?
Section titled “iterations?”
optionaliterations?:number
Defined in: fastloess_wasm.d.ts:15
Number of robustness iterations. Default: 3.
missing?
Section titled “missing?”
optionalmissing?:string
Defined in: fastloess_wasm.d.ts:49
Policy for non-finite (NaN/Inf) values in input data (“error”, “drop”). Default: “error”.
outputs?
Section titled “outputs?”
optionaloutputs?:string[]
Defined in: fastloess_wasm.d.ts:8
Optional output components: diagnostics, residuals, weights, gradient (or derivative), se, sorted.
parallel?
Section titled “parallel?”
optionalparallel?:boolean
Defined in: fastloess_wasm.d.ts:29
Enable parallel execution. Default: true.
retain_model?
Section titled “retain_model?”
optionalretain_model?:boolean
Defined in: fastloess_wasm.d.ts:51
Retain the fitted model’s training data, enabling LoessResult.predict(). Default: false.
robustness_method?
Section titled “robustness_method?”
optionalrobustness_method?:string
Defined in: fastloess_wasm.d.ts:19
Robustness method (“bisquare”, “huber”, “talwar”). Default: “bisquare”.
scaling_method?
Section titled “scaling_method?”
optionalscaling_method?:string
Defined in: fastloess_wasm.d.ts:25
Scaling method (“mad”, “mar”, “mean”). Default: “mad”.
optionalseed?:number
Defined in: fastloess_wasm.d.ts:47
Non-negative safe-integer seed for cross-validation (at most Number.MAX_SAFE_INTEGER).
surface_mode?
Section titled “surface_mode?”
optionalsurface_mode?:string
Defined in: fastloess_wasm.d.ts:37
Surface computation mode (“interpolation” or “direct”). Default: “interpolation”.
weight_function?
Section titled “weight_function?”
optionalweight_function?:string
Defined in: fastloess_wasm.d.ts:17
Kernel function (“tricube”, “epanechnikov”, “gaussian”, “uniform”, “biweight”, “triangle”, “cosine”). Default: “tricube”.
weighted_metric_weights?
Section titled “weighted_metric_weights?”
optionalweighted_metric_weights?:number[]
Defined in: fastloess_wasm.d.ts:39
Per-dimension weights for the weighted distance metric.
zero_weight_fallback?
Section titled “zero_weight_fallback?”
optionalzero_weight_fallback?:string
Defined in: fastloess_wasm.d.ts:21
Fallback when all weights are zero (“use_local_mean”, “return_original”, “return_none”). Default: “use_local_mean”.