initializeFit {ptairMS} | R Documentation

## initialization for apply fit function in the spectrum

### Description

initialization for apply fit function in the spectrum

### Usage

    initializeFit(
      i,
      sp.i.fit,
      sp.i,
      mz.i,
      calibCoef,
      resmean,
      minpeakheight,
      noiseacf,
      ppmPeakMinSep,
      daSeparation,
      d,
      plotAll,
      c
    )

### Arguments

`i` | the nominal mass
`sp.i.fit` | the vector who will be fetted (spectrum pf residual)
`sp.i` | the spectrum around a nominal mass
`mz.i` | the mass vector around a nominal mass
`calibCoef` | calibration coeficient
`resmean` | resolution m/delta(m) mean
`minpeakheight` | the minimum peak intensity
`noiseacf` | aytocorelation of the noise
`ppmPeakMinSep` | the minimum distance between two peeks in ppm
`daSeparation` | the minimum distance between two peeks in da
`d` | the degree of savitzky golay filter
`plotAll` | bollean if TRUE, it plot all the initialiation step
`c` | the number of current itteration

### Value

a list with fit input

[Package ptairMS version 1.0.1 Index]