Function addMissingShape

  • add missing property if it does not exist in the peak, if shape exists but fwhm doesn't, it will be calculated from peak.width

    Type Parameters

    • T extends {
          width: number;
      }

    Parameters

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

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