timesfm-ts - v1.0.0
    Preparing search index...
    • Get a prediction interval for a single series.

      Returns the lower and upper bounds of the prediction interval at the given confidence level. Only 80% CI is available from TimesFM's 10-quantile output, which maps to Q10–Q90.

      Parameters

      • output: ForecastOutput

        Forecast output from model.forecast().

      • seriesIndex: number

        Index of the series (0-based).

      • confidence: 0.8 = 0.8

        Confidence level — only 0.8 is supported.

      Returns { lower: Float32Array; upper: Float32Array }

      const { lower, upper } = getPredictionInterval(output, 0, 0.8);