filterPeaks use floor to determine minimal number of peaks from a given minFrequency argument but it should not round it because this behavior is mostly unexpected.
To reproduce:
minFrequency=2/3;
2/3_3 == 2 (at least 2; mass == 1:4 for group 1);
2/3_4 == 2.6667 (=> at least 3 peaks (mass == 1:4) for group 2; but filterPeaks uses floor and we get mass == 1:5)
filterPeaks use
floor
to determine minimal number of peaks from a givenminFrequency
argument but it should not round it because this behavior is mostly unexpected.To reproduce:
minFrequency=2/3
; 2/3_3 == 2 (at least 2; mass == 1:4 for group 1); 2/3_4 == 2.6667 (=> at least 3 peaks (mass == 1:4) for group 2; but filterPeaks uses floor and we get mass == 1:5)