Function peakPicking

  • Based on a x value we will return a peak if you set optimize=True the returned positions will be the closest actual datapoints to the fitted peak location. the x/y of the fitted peak will be in xOptimized and yOptimized

    Parameters

    • spectrum: Spectrum<DoubleArray>
    • target: number

      value to search (on x axis)

    • options: PeakPickingOptions = {}

    Returns undefined | {
        optimized?: any;
        [key: string]: number;
    }