Skip to main content

iczt

Function iczt 

Source
pub fn iczt(
    czt_values: &[Complex<f64>],
    n: usize,
    contour: &SpiralContour,
) -> Result<ArrayBase<OwnedRepr<Complex<f64>>, Dim<[usize; 1]>>, FFTError>
Expand description

Compute the inverse CZT (reconstruct a signal from its CZT values)

Given M CZT values at known z-plane points, reconstruct an N-point signal. This uses a least-squares approach via the Vandermonde system.

§Arguments

  • czt_values - The CZT output values
  • n - Length of the signal to reconstruct
  • contour - The contour used in the forward CZT

§Errors

Returns an error if m < n (underdetermined system) or if the system is singular.