R/phaseCorr2.r

Defines functions phaseCorr2

#' A function rather aimed at developers
#' @noRd

phaseCorr2=function(datpoint){
  ### datpoint contain 3 elements:real, imaginary, and phase error correction angle, i.e. the adding angle
  creal=datpoint[1]*cos(datpoint[3])-datpoint[2]*sin(datpoint[3])
  cimag=datpoint[1]*sin(datpoint[3])+datpoint[2]*cos(datpoint[3])
  return(c(creal,cimag))
}

Try the NMRphasing package in your browser

Any scripts or data that you put into this service are public.

NMRphasing documentation built on Oct. 13, 2024, 1:07 a.m.