// Evaluate one causal FIR output using taps in lag order and zero padding at the start of a signal. pub fn fir_point(samples: vector, taps: vector, index: i64) -> f64 { if index<0 || index >= len(samples) { return 0.0; } let mut j = 0; let mut y = 0.0; while j