drupflare/worker - v1.0.4
    Preparing search index...

    Function fitTrend

    • Least-squares slope over a ring; rising needs the rise to beat TREND_MIN_SNR times the mean residual, since a bare slope > 0 fires on wobble. A straight line (zero residual) passes.

      Parameters

      • samples: number[] | undefined

      Returns Trend | undefined