[][src]Struct aubio_rs::FFT

pub struct FFT { /* fields omitted */ }

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

Compute real part from the norm/phas cvec

Trait Implementations

impl Drop for FFT[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.