Loess
# loessFacts function
packages/forge/src/regression/loess.ts:47loessFacts(options: LoessFactOptions, smoothResult: SmoothResult): FactResultGenerates facts from a LOESS smoothing result.
Emits trend.smoothed — turning points and net direction — plus
fit.quality, fit.error, and a small-sample caveat.
There is no trend fact with a rate or coefficient, because a smoother fits no equation. Its contribution is shape: “rises to a peak at week 12, then declines” is a claim no parametric fit in this library can make.
Parameters
| Name | Type | Description |
|---|---|---|
| options | CommonFactOptions | — |
| smoothResult | SmoothResult | — |
Returns
FactResult
# LoessFactOptions type
packages/forge/src/regression/loess.ts:17type LoessFactOptions = LogarithmicFactOptions;Options are the shared set — smoothing adds no thresholds of its own.