[−][src]Struct aubio_rs::FFT
FFT (Fast Fourier Transformation) object
This object computes forward and backward FFTs.
Depending on how aubio was compiled, FFT are computed using one of:
- Ooura
- FFTW3
- vDSP
Methods
impl FFT
[src]
pub fn new(win_size: usize) -> Result<Self>
[src]
Create new FFT computation object
pub fn get_win(&self) -> usize
[src]
Get window size
pub fn get_fft(&self) -> usize
[src]
Get fft size
pub fn do_<'i, 'o, I, O>(&mut self, input: I, spectrum: O) -> Status where
I: Into<FVec<'i>>,
O: Into<CVecMut<'o>>,
[src]
I: Into<FVec<'i>>,
O: Into<CVecMut<'o>>,
Compute forward (direct) FFT
pub fn rdo<'i, 'o, I, O>(&mut self, spectrum: I, output: O) -> Status where
I: Into<CVec<'i>>,
O: Into<FVecMut<'o>>,
[src]
I: Into<CVec<'i>>,
O: Into<FVecMut<'o>>,
Compute backward (inverse) FFT
pub fn do_complex<'i, 'o, I, O>(&mut self, input: I, compspec: O) -> Status where
I: Into<FVec<'i>>,
O: Into<FVecMut<'o>>,
[src]
I: Into<FVec<'i>>,
O: Into<FVecMut<'o>>,
Compute forward (direct) FFT
pub fn rdo_complex<'i, 'o, I, O>(&mut self, compspec: I, output: O) -> Status where
I: Into<FVec<'i>>,
O: Into<FVecMut<'o>>,
[src]
I: Into<FVec<'i>>,
O: Into<FVecMut<'o>>,
Compute backward (inverse) FFT
pub fn get_spectrum<'i, 'o, I, O>(compspec: I, spectrum: O) -> Status where
I: Into<FVec<'i>>,
O: Into<CVecMut<'o>>,
[src]
I: Into<FVec<'i>>,
O: Into<CVecMut<'o>>,
Convert real/imag spectrum to norm/phas spectrum
pub fn get_realimag<'i, 'o, I, O>(spectrum: I, compspec: O) -> Status where
I: Into<CVec<'i>>,
O: Into<FVecMut<'o>>,
[src]
I: Into<CVec<'i>>,
O: Into<FVecMut<'o>>,
Convert norm/phas spectrum to real/imag spectrum
pub fn get_phas<'i, 'o, I, O>(compspec: I, spectrum_phas: O) -> Status where
I: Into<FVec<'i>>,
O: Into<CVecPhasMut<'o>>,
[src]
I: Into<FVec<'i>>,
O: Into<CVecPhasMut<'o>>,
Compute phas spectrum from real/imag parts
pub fn get_norm<'i, 'o, I, O>(compspec: I, spectrum_norm: O) -> Status where
I: Into<FVec<'i>>,
O: Into<CVecNormMut<'o>>,
[src]
I: Into<FVec<'i>>,
O: Into<CVecNormMut<'o>>,
Compute norm component from real/imag parts
pub fn get_imag<'i, 'o, I, O>(spectrum: I, compspec: O) -> Status where
I: Into<CVec<'i>>,
O: Into<FVecMut<'o>>,
[src]
I: Into<CVec<'i>>,
O: Into<FVecMut<'o>>,
Compute imaginary part from the norm/phas cvec
pub fn get_real<'i, 'o, I, O>(spectrum: I, compspec: O) -> Status where
I: Into<CVec<'i>>,
O: Into<FVecMut<'o>>,
[src]
I: Into<CVec<'i>>,
O: Into<FVecMut<'o>>,
Compute real part from the norm/phas cvec
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FFT
impl !Send for FFT
impl !Sync for FFT
impl Unpin for FFT
impl UnwindSafe for FFT
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,