The low-pass cutoff frequency must be less than the Nyquist frequency of the data. The search window must be less than the cycle length.