Function scaleAlignment

  • Aligns the time of the sample based on the regression with his reference value

    Parameters

    • reference: any[]

      Array of peaks, integrated mass spectra and weighted mass spectra for the reference chromatogram

    • sample: any[]

      Array of peaks, integrated mass spectra and weighted mass spectra for the sample chromatogram

    • Optional options: ScaleAlignmentOptions

    Returns any

    The scaled spectra.

    • scaleRegression: The regression function to make the regression
    • stringFormula: Regression equation
    • r2: R2 quality number
    • error: Vector of the difference between the spected value and the actual shift value