mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
2-D window functions for spectral analysis
Functions | |
template<typename realT > | |
void | mx::sigproc::window::tukey2d (realT *filt, int rows, int cols, realT D, realT alpha, realT xc, realT yc) |
Create a 2-D Tukey window. More... | |
template<typename arrT > | |
void | mx::sigproc::window::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. More... | |
template<typename realT > | |
void | mx::sigproc::window::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. More... | |
template<typename arrT > | |
void | mx::sigproc::window::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. More... | |
void mx::sigproc::window::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.
Function to create a 2-D Tukey window.
The shape of the window is controlled by alpha. alpha = 0 is a cylinder, alpha=1.0 is the Hann window.
See https://en.wikipedia.org/wiki/Window_function
arrT | an Eigen-like array type |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
filt | [in.out] a pre-allocated array | |
[in] | D | the diameter of the window |
[in] | alpha | controls the window shape. 1.0 gives a Hann window, 0.0 gives a cylinder (a.k.a. no window) |
[in] | xc | the desired x center of the window. |
[in] | yc | the desired y center of the window. |
Definition at line 424 of file signalWindows.hpp.
void mx::sigproc::window::tukey2d | ( | realT * | filt, |
int | rows, | ||
int | cols, | ||
realT | D, | ||
realT | alpha, | ||
realT | xc, | ||
realT | yc | ||
) |
Create a 2-D Tukey window.
Function to create a 2-D Tukey window.
The shape of the window is controlled by alpha. alpha = 0 is a cylinder, alpha=1.0 is the Hann window.
See https://en.wikipedia.org/wiki/Window_function
[out] | filt | a pre-allocated array of size rows x cols (column major) |
[in] | rows | the number of rows in filt |
[in] | cols | the number of cols in filt |
[in] | D | the diameter of the window |
[in] | alpha | controls the window shape. 1.0 gives a Hann window, 0.0 gives a cylinder (a.k.a. no window) |
[in] | xc | the desired x center of the window. |
[in] | yc | the desired y center of the window. |
Definition at line 363 of file signalWindows.hpp.
References mx::math::pi().
void mx::sigproc::window::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.
Function to create a 2-D Tukey window on an annulus.
The shape of the window is controlled by alpha. alpha = 0 is a cylinder, alpha=1.0 is the Hann window.
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.
realT | is a floating point type |
[in,out] | filt | a pre-allocated array |
[in] | D | the outer diameter of the window |
[in] | eps | the ratio of inner diameter to the outer diameter |
[in] | alpha | controls the window shape. 1.0 gives a Hann window, 0.0 gives a cylinder (a.k.a. no window) |
[in] | xc | the desired x center of the window. |
[in] | yc | the desired y center of the window. |
Definition at line 512 of file signalWindows.hpp.
void mx::sigproc::window::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.
Function to create a 2-D Tukey window on an annulus.
The shape of the window is controlled by alpha. alpha = 0 is a cylinder, alpha=1.0 is the Hann window.
See https://en.wikipedia.org/wiki/Window_function
realT | is a floating point type |
[out] | filt | a pre-allocated array of size rows x cols (column major) |
[in] | rows | the number of rows in filt |
[in] | cols | the number of cols in filt |
[in] | D | the outer diameter of the window |
[in] | eps | the ratio of inner diameter to the outer diameter |
[in] | alpha | controls the window shape. 1.0 gives a Hann window, 0.0 gives a cylinder (a.k.a. no window) |
[in] | xc | the desired x center of the window. |
[in] | yc | the desired y center of the window. |
Definition at line 447 of file signalWindows.hpp.
References mx::math::pi().