@pond-ts/financial API Reference
    Preparing search index...

    Function foldRows

    • Run a K6 FoldStep over row-aligned columns and return outputCount row-aligned output arrays.

      Type Parameters

      • State

      Parameters

      • inputs: readonly Float64Array<ArrayBufferLike>[]
      • outputCount: number
      • state: State
      • step: FoldStep<State>

      Returns Float64Array<ArrayBufferLike>[]

      TypeError if the inputs are empty or not all the same length, or if outputCount is not a positive integer — all three are programming errors in a study rather than data conditions.