API Reference
fastlowess / SmoothOptions
Interface: SmoothOptions
Section titled “Interface: SmoothOptions”Defined in: index.d.ts:236
Properties
Section titled “Properties”auto_converge?
Section titled “auto_converge?”
optionalauto_converge?:number
Defined in: index.d.ts:257
Auto-convergence tolerance. Default: None.
backend?
Section titled “backend?”
optionalbackend?:string
Defined in: index.d.ts:272
Execution backend: “cpu” (default) or “gpu” (requires the package to be
built with the gpu Cargo feature and a Vulkan/Metal/DX12-capable GPU).
boundary_policy?
Section titled “boundary_policy?”
optionalboundary_policy?:string
Defined in: index.d.ts:253
Boundary handling (“extend”, “reflect”, “zero”, “noboundary”). Default: “extend”.
optionalcv?:CvOptions
Defined in: index.d.ts:263
Grouped cross-validation configuration.
delta?
Section titled “delta?”
optionaldelta?:number
Defined in: index.d.ts:245
Delta for interpolation speedup. Default: NaN (auto). Set to 0.0 to disable interpolation.
fraction?
Section titled “fraction?”
optionalfraction?:number
Defined in: index.d.ts:238
Smoothing fraction (0 < fraction <= 1). Default: 0.67.
intervals?
Section titled “intervals?”
optionalintervals?:IntervalsOptions
Defined in: index.d.ts:261
Grouped confidence/prediction levels and optional residual-bootstrap refits.
iterations?
Section titled “iterations?”
optionaliterations?:number
Defined in: index.d.ts:240
Number of robustness iterations. Default: 3.
missing?
Section titled “missing?”
optionalmissing?:string
Defined in: index.d.ts:274
Policy for non-finite (NaN/Inf) values in input data (“error”, “drop”). Default: “error”.
outputs?
Section titled “outputs?”
optionaloutputs?:string[]
Defined in: index.d.ts:259
Optional output components: se, diagnostics, residuals, weights, derivative, sorted.
parallel?
Section titled “parallel?”
optionalparallel?:boolean
Defined in: index.d.ts:267
Enable parallel execution. Default: true.
retain_model?
Section titled “retain_model?”
optionalretain_model?:boolean
Defined in: index.d.ts:276
Retain the fitted model’s training data, enabling LowessResult.predict(). Default: false.
robustness_method?
Section titled “robustness_method?”
optionalrobustness_method?:string
Defined in: index.d.ts:249
Robustness method (“bisquare”, “huber”, “talwar”). Default: “bisquare”.
scaling_method?
Section titled “scaling_method?”
optionalscaling_method?:string
Defined in: index.d.ts:255
Scaling method (“mad”, “mar”, “mean”). Default: “mad”.
optionalseed?:number
Defined in: index.d.ts:265
Shared JavaScript safe-integer seed for k-fold CV and residual bootstrap; 0 is valid. Default: None.
weight_function?
Section titled “weight_function?”
optionalweight_function?:string
Defined in: index.d.ts:247
Weight function (“tricube”, “epanechnikov”, “gaussian”, “uniform”, “biweight”, “triangle”, “cosine”). Default: “tricube”.
zero_weight_fallback?
Section titled “zero_weight_fallback?”
optionalzero_weight_fallback?:string
Defined in: index.d.ts:251
Fallback strategy when weights are zero (“use_local_mean”, “return_original”, “return_none”). Default: “use_local_mean”.