pub trait C2rPlan {
// Required methods
fn n_fft(&self) -> usize;
fn input_len(&self) -> usize;
fn process(
&mut self,
input: &[Complex<f64>],
output: &mut [f64],
) -> SpectrogramResult<()>;
}Expand description
A planned complex-to-real inverse FFT for a fixed transform length.
Required Methods§
Sourcefn input_len(&self) -> usize
fn input_len(&self) -> usize
Input length for complex-to-real inverse FFT is r2c_output_size(n_fft)
§Returns
Length of the complex input slice required for the inverse FFT.
Sourcefn process(
&mut self,
input: &[Complex<f64>],
output: &mut [f64],
) -> SpectrogramResult<()>
fn process( &mut self, input: &[Complex<f64>], output: &mut [f64], ) -> SpectrogramResult<()>
Process complex input to real output.
§Arguments
input- Complex frequency domain inputoutput- Real time domain output
§Returns
Ok(()) if successful, or SpectrogramError if dimensions are invalid.
§Errors
Returns SpectrogramError::dimension_mismatch if input or output lengths do not match expected sizes.