initializeFit: initialization for apply fit function in the spectrum

View source: R/peak_detection.R

initializeFitR 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


camilleroquencourt/ptairMS documentation built on April 24, 2024, 9:03 p.m.