Polynomial frequency domain baseline correction
From NMRPipe paper (appendix):
applies a polynomial baseline correction of the order specified by argument -ord via an automated base-line detection method when used with argument -auto. The defauly is a forth-order polynomial. The automated base-line mode works as follows: a copy of a given vector is divided into a series of adjacent sections, typically eight points wide. The average value of each section is subtracted from all points in that section, to generate a ‘centered’ vector. The intensities of the entire centered vector are sorted, and the standard deviation of the noise is estimated under the assumption that a given fraction (typically about 30%) of the smallest intensities belong to the base-line, and that the noise is normally distributed. This noise estimate is multiplied by a constant, typically about 1.5, to yield a classification threshold. Then, each section in the centered vector is classified as base line only if its standard deviation does not exceed the threshold. These classifications are used to correct the original vector.
Alg: