Documentation

Loess

@statili/forge ·v0.0.2-beta.0 ·2 exports

signature
loessFacts(options: LoessFactOptions, smoothResult: SmoothResult): FactResult
Generates 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

NameTypeDescription
options CommonFactOptions
smoothResult SmoothResult

Returns

FactResult
signature
type LoessFactOptions = LogarithmicFactOptions;
Options are the shared set — smoothing adds no thresholds of its own.