mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
Loading...
Searching...
No Matches
mx::sigproc::window Namespace Reference

Functions

template<typename realT >
void tukey (realT *filt, int N, realT alpha)
 The Tukey Window.
 
template<typename realT >
void tukey (std::vector< realT > &filt, realT alpha)
 The Tukey Window.
 
template<typename realT >
void genCosine (realT *filt, size_t N, realT a0, realT a1)
 The generalized 2 parameter cosine Window.
 
template<typename realT >
void genCosine (realT *filt, size_t N, realT a0, realT a1, realT a2)
 The generalized 3 parameter cosine Window.
 
template<typename realT >
void genCosine (realT *filt, size_t N, realT a0, realT a1, realT a2, realT a3)
 The generalized 4 parameter cosine Window.
 
template<typename realT >
void hann (realT *filt, int N)
 The Hann Window.
 
template<typename realT >
void hann (std::vector< realT > &filt)
 The Hann Window.
 
template<typename realT >
void hamming (realT *filt, int N)
 The Hamming Window.
 
template<typename realT >
void hamming (std::vector< realT > &filt)
 The Hamming Window.
 
template<typename realT >
void blackman (realT *filt, size_t N)
 The Blackman Window.
 
template<typename realT >
void blackman (std::vector< realT > &filt)
 The Blackman Window.
 
template<typename realT >
void exactBlackman (realT *filt, size_t N)
 The Exact Blackman Window.
 
template<typename realT >
void exactBlackman (std::vector< realT > &filt)
 The Exact Blackman Windwo.
 
template<typename realT >
void nuttal (realT *filt, size_t N)
 The Nuttal Window.
 
template<typename realT >
void nuttal (std::vector< realT > &filt)
 The Nuttal Window.
 
template<typename realT >
void blackmanNuttal (realT *filt, size_t N)
 The Blackman-Nuttal Windwo.
 
template<typename realT >
void blackmanNuttal (std::vector< realT > &filt)
 The Blackman-Nuttal Windwo.
 
template<typename realT >
void tukey2d (realT *filt, int rows, int cols, realT D, realT alpha, realT xc, realT yc)
 Create a 2-D Tukey window.
 
template<typename arrT >
void tukey2d (arrT &filt, typename arrT::Scalar D, typename arrT::Scalar alpha, typename arrT::Scalar xc, typename arrT::Scalar yc)
 Create a 2-D Tukey window.
 
template<typename realT >
void tukey2dAnnulus (realT *filt, int rows, int cols, realT D, realT eps, realT alpha, realT xc, realT yc)
 Create a 2-D Tukey window on an annulus.
 
template<typename arrT >
void tukey2dAnnulus (arrT &filt, typename arrT::Scalar D, typename arrT::Scalar eps, typename arrT::Scalar alpha, typename arrT::Scalar xc, typename arrT::Scalar yc)
 Create a 2-D Tukey window on an annulus.
 
template<typename realT >
void tukey2dSquare (realT *filt, int rows, int cols, realT W, realT H, realT alpha, realT xc, realT yc)
 Create a 2-D Tukey window on a rectangle.
 

Function Documentation

◆ exactBlackman()

template<typename realT >
void mx::sigproc::window::exactBlackman ( std::vector< realT > &  filt)

The Exact Blackman Windwo.

See https://en.wikipedia.org/wiki/Window_function

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Template Parameters
realTa real floating point type
Parameters
[out]filtThe pre-allocated vector which will store the filter

Definition at line 287 of file signalWindows.hpp.

References exactBlackman().