Fast calculation algorithm for discrete resonance-based band-pass filter