qm-dsp 1.8
|
Various shaped windows for sample frame conditioning, including cosine windows (Hann etc) and triangular and rectangular windows. More...
#include <Window.h>
Public Member Functions | |
Window (WindowType type, int size) | |
Construct a windower of the given type and size. | |
Window (const Window &w) | |
Window & | operator= (const Window &w) |
virtual | ~Window () |
void | cut (T *src) const |
void | cut (const T *src, T *dst) const |
WindowType | getType () const |
int | getSize () const |
std::vector< T > | getWindowData () const |
Protected Member Functions | |
void | encache () |
Protected Attributes | |
WindowType | m_type |
int | m_size |
T * | m_cache |
Various shaped windows for sample frame conditioning, including cosine windows (Hann etc) and triangular and rectangular windows.
|
inline |
Construct a windower of the given type and size.
Note that the cosine windows are periodic by design, rather than symmetrical. (A window of size N is equivalent to a symmetrical window of size N+1 with the final element missing.)
Definition at line 50 of file Window.h.
References Window< T >::encache().
Definition at line 51 of file Window.h.
References Window< T >::encache().
Definition at line 59 of file Window.h.
References Window< T >::m_cache.
Definition at line 52 of file Window.h.
References Window< T >::encache(), Window< T >::m_size, and Window< T >::m_type.
|
inline |
Definition at line 61 of file Window.h.
References Window< T >::cut().
Referenced by Window< T >::cut(), ClusterMeltSegmenter::extractFeaturesConstQ(), Chromagram::process(), MFCC::process(), and DetectionFunction::processTimeDomain().
|
inline |
Definition at line 62 of file Window.h.
References Window< T >::m_cache, and Window< T >::m_size.
|
inline |
Definition at line 66 of file Window.h.
References Window< T >::m_type.
|
inline |
Definition at line 67 of file Window.h.
References Window< T >::m_size.
Referenced by ClusterMeltSegmenter::extractFeaturesConstQ().
|
inline |
Definition at line 69 of file Window.h.
References Window< T >::m_cache, and Window< T >::m_size.
|
protected |
Definition at line 86 of file Window.h.
References BartlettWindow, BlackmanHarrisWindow, BlackmanWindow, HammingWindow, HanningWindow, and RectangularWindow.
Referenced by Window< T >::operator=(), Window< T >::Window(), and Window< T >::Window().
|
protected |
Definition at line 78 of file Window.h.
Referenced by Window< T >::getType(), and Window< T >::operator=().
|
protected |
Definition at line 79 of file Window.h.
Referenced by Window< T >::cut(), Window< T >::getSize(), Window< T >::getWindowData(), and Window< T >::operator=().
|
protected |
Definition at line 80 of file Window.h.
Referenced by Window< T >::cut(), Window< T >::getWindowData(), and Window< T >::~Window().