pub fn minimum_phase(
h: &[f64],
half: bool,
n_fft: Option<usize>,
) -> Result<Vec<f64>, ErrorsJSL>Expand description
A minimum-phase FIR filter from a linear-phase one by the homomorphic method (SciPy’s
minimum_phase(h, 'homomorphic')): the real cepstrum of |H| (or of |H|^{1/2} with
half, which preserves the magnitude of a filter that is the square of a minimum-phase one),
folded onto positive quefrencies and exponentiated back. Returns len(h)/2 + len(h) mod 2
coefficients with half, otherwise len(h).