Function linearSpace

  • Returns an array of linearly spaced numbers between start and end.

    Parameters

    • start: number

      The starting number of the sequence.

    • end: number

      The ending number of the sequence.

    • Optional num: number

      The number of samples to generate. Defaults to the maximum of 1 and end - start rounded.

    Returns number[]

    An array of num linearly spaced numbers between start and end.