SigPack - the C++ signal processing library
 
Loading...
Searching...
No Matches
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 144 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 168 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 156 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 183 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 134 of file base.h.