timesfm-ts - v1.0.0
    Preparing search index...
    • Apply RevIN to quantile-shaped outputs.

      Shape: (batch, patches, patchLen, numQuantiles).

      mu/sigma are broadcast from (batch,) or (batch, patches) with two trailing singleton dims added internally.

      Parameters

      • values: Float32Array<ArrayBufferLike>[]
      • mu: Float32Array<ArrayBufferLike>[]
      • sigma: Float32Array<ArrayBufferLike>[]
      • reverse: boolean
      • numPatches: number
      • patchLen: number
      • numQuantiles: number

      Returns Float32Array<ArrayBufferLike>[]

      The output always has exportedPatches-worth of elements regardless of the actual number of valid sub-patches. Callers MUST index by the known sub-patch count, NOT by the output array length. Using the wrong index silently produces zero-valued outputs.

      Contract: The returned array always has exportedPatches-worth of elements per batch entry. When the caller only populated m < exportedPatches sub-patches, the trailing (exportedPatches - m) sub-patches are zero-filled. Callers MUST index by their known m, not by array.length. Changing this memory strategy requires updating all callers (notably decode-loop.ts).