SigPack - the C++ signal processing library
Data

Functions

arma_inline arma::vec sp::timevec (const int N, const double Fs)
 
template<typename T >
arma::Col< T > sp::fftshift (const arma::Col< T > &Pxx)
 
template<typename T >
arma::Col< T > sp::ifftshift (const arma::Col< T > &Pxx)
 
template<typename T >
arma::Mat< T > sp::fftshift (const arma::Mat< T > &Pxx)
 
template<typename T >
arma::Mat< T > sp::ifftshift (const arma::Mat< T > &Pxx)
 

Detailed Description

Function Documentation

◆ fftshift() [1/2]

template<typename T >
arma::Col<T> sp::fftshift ( const arma::Col< T > &  Pxx)

1D FFT shift.

Returns
Circular shifted FFT
Parameters
PxxComplex FFT
Examples:
image.cpp.

Definition at line 143 of file base.h.

Referenced by main().

◆ fftshift() [2/2]

template<typename T >
arma::Mat<T> sp::fftshift ( const arma::Mat< T > &  Pxx)

2D FFT shift.

Returns
Circular shifted FFT
Parameters
PxxFFT

Definition at line 167 of file base.h.

◆ ifftshift() [1/2]

template<typename T >
arma::Col<T> sp::ifftshift ( const arma::Col< T > &  Pxx)

1D FFT inverse/reverse shift.

Returns
Circular shifted FFT
Parameters
PxxComplex FFT

Definition at line 155 of file base.h.

◆ ifftshift() [2/2]

template<typename T >
arma::Mat<T> sp::ifftshift ( const arma::Mat< T > &  Pxx)

2D FFT inverse/reverse shift.

Returns
Circular shifted FFT
Parameters
PxxFFT

Definition at line 182 of file base.h.

◆ timevec()

arma_inline arma::vec sp::timevec ( const int  N,
const double  Fs 
)

Generates a linear time vector with specified sample rate. Delta time=1/Fs.

Parameters
NNumber of data points
FsSample rate

Definition at line 133 of file base.h.