Function optimizePeaksWithLogs

  • Optimize the position (x), max intensity (y), full width at half maximum (fwhm) and the ratio of gaussian contribution (mu) if it's required. It currently supports three kind of shapes: gaussian, lorentzian and pseudovoigt

    Type Parameters

    Parameters

    • data: DataXY<NumberArray>

      An object containing the x and y data to be fitted.

    • peakList: T[]

      A list of initial parameters to be optimized. e.g. coming from a peak picking [{x, y, width}].

    • options: OptimizePeaksOptions = {}

    Returns {
        logs: any[];
        optimizedPeaks: GSDPeakOptimizedIDOrNot<T>[];
    }

    • logs: any[]
    • optimizedPeaks: GSDPeakOptimizedIDOrNot<T>[]