pub fn pulse_compress(
received: &[Complex<f64>],
pulse: &[Complex<f64>],
weights: Option<&[f64]>,
) -> Result<Vec<Complex<f64>>, ErrorsJSL>Expand description
Compresses received with the (optionally weighted) matched filter of pulse. Output index
k is the correlation at delay k samples, Σ_n r[n + k] w[n] conj(p[n]), so a target whose
echo starts at sample k peaks at index k. The output has received.len() samples.