Function setShape

  • Append 2 properties to the peaks, shape and fwhm

    Type Parameters

    • T extends {
          width: number;
      }

    Parameters

    • peaks: T[]
    • options: {
          output?: T[];
          shape?: Shape1D;
      } = {}
      • Optional output?: T[]
      • Optional shape?: Shape1D

        Shape to use to calculate FWHM

        Default

        "{ kind: 'gaussian' }"
        

    Returns (T & {
        shape: Shape1D;
    })[]