spectral_flatness_batch_sparse_fft

Function spectral_flatness_batch_sparse_fft 

Source
pub fn spectral_flatness_batch_sparse_fft<T>(
    signals: &[Vec<T>],
    flatness_threshold: f64,
    window_size: usize,
    window_function: Option<WindowFunction>,
    device_id: Option<i32>,
    batchconfig: Option<BatchConfig>,
) -> FFTResult<Vec<SparseFFTResult>>
where T: NumCast + Copy + Debug + Sync + 'static,
Expand description

Optimized batch processing for spectral flatness sparse FFT

This function is specialized for the spectral flatness algorithm, which can benefit from batch processing due to its signal analysis requirements.

§Arguments

  • signals - List of input signals
  • flatness_threshold - Threshold for spectral flatness (0-1, lower = more selective)
  • window_size - Size of windows for local flatness analysis
  • window_function - Window function to apply before FFT
  • device_id - GPU device ID (-1 for auto-select)
  • batchconfig - Batch processing configuration

§Returns

  • Vector of sparse FFT results, one for each input signal