sgibb / MALDIquant

Quantitative Analysis of Mass Spectrometry Data
https://strimmerlab.github.io/software/maldiquant/
60 stars 25 forks source link

estimateBaseline(..., method="Median") allows a window size > n #4

Closed sgibb closed 11 years ago

sgibb commented 11 years ago

To reproduce:

library("MALDIquant")                                                                                         
s <- createMassSpectrum(1:2, 1:2)                                                                             
estimateBaseline(s, method="Median")

Output:

Warning message:
In runmed(y, k = (2 * halfWindowSize + 1)) :
'k' is bigger than 'n'!  Changing 'k' to 1