pub struct SparseFFT { /* private fields */ }
Expand description
Sparse FFT processor
Implementations§
Source§impl SparseFFT
impl SparseFFT
Sourcepub fn new(config: SparseFFTConfig) -> Self
pub fn new(config: SparseFFTConfig) -> Self
Create a new sparse FFT processor with the given configuration
Sourcepub fn with_default_config() -> Self
pub fn with_default_config() -> Self
Create a new sparse FFT processor with default configuration
Sourcepub fn estimate_sparsity<T>(&mut self, signal: &[T]) -> FFTResult<usize>
pub fn estimate_sparsity<T>(&mut self, signal: &[T]) -> FFTResult<usize>
Estimate sparsity of a signal
Sourcepub fn sparse_fft<T>(&mut self, signal: &[T]) -> FFTResult<SparseFFTResult>
pub fn sparse_fft<T>(&mut self, signal: &[T]) -> FFTResult<SparseFFTResult>
Perform sparse FFT on the input signal
Sourcepub fn sparse_fft_full<T>(&mut self, signal: &[T]) -> FFTResult<Vec<Complex64>>
pub fn sparse_fft_full<T>(&mut self, signal: &[T]) -> FFTResult<Vec<Complex64>>
Perform sparse FFT and reconstruct the full spectrum
Sourcepub fn reconstruct_signal(
&self,
sparse_result: &SparseFFTResult,
n: usize,
) -> FFTResult<Vec<Complex64>>
pub fn reconstruct_signal( &self, sparse_result: &SparseFFTResult, n: usize, ) -> FFTResult<Vec<Complex64>>
Reconstruct time-domain signal from sparse frequency components
Auto Trait Implementations§
impl Freeze for SparseFFT
impl RefUnwindSafe for SparseFFT
impl Send for SparseFFT
impl Sync for SparseFFT
impl Unpin for SparseFFT
impl UnwindSafe for SparseFFT
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more