LASP 1.0
Library for Acoustic Signal Processing
|
Window (aka taper) functions of a certain type. More...
#include <lasp_window.h>
Public Types | |
enum class | WindowType { Hann = 0 , Hamming = 1 , Rectangular = 2 , Bartlett = 3 , Blackman = 4 } |
Static Public Member Functions | |
static std::string | toText (const WindowType wt) |
Convert a window type enum to its equivalent text. | |
static vd | create (const WindowType w, const us len) |
Dispatcher: create a window based on enum type and len. | |
static vd | hann (const us len) |
Hann window. | |
static vd | hamming (const us len) |
Hamming window. | |
static vd | rectangular (const us len) |
Rectangular (boxcar) window. | |
static vd | bartlett (const us len) |
Bartlett window. | |
static vd | blackman (const us len) |
Blackman window. | |
Window (aka taper) functions of a certain type.
Definition at line 7 of file lasp_window.h.
|
strong |
Enumerator | |
---|---|
Hann | |
Hamming | |
Rectangular | |
Bartlett | |
Blackman |
Definition at line 10 of file lasp_window.h.
Bartlett window.
len | Length of the window (typically, integer power of two). |
Definition at line 33 of file lasp_window.cpp.
Blackman window.
len | Length of the window (typically, integer power of two). |
Definition at line 23 of file lasp_window.cpp.
|
static |
Dispatcher: create a window based on enum type and len.
w | Window type |
len | Length of the window (typically, integer power of two). |
Definition at line 36 of file lasp_window.cpp.
Hamming window.
len | Length of the window (typically, integer power of two). |
Definition at line 19 of file lasp_window.cpp.
Hann window.
len | Length of the window (typically, integer power of two). |
Definition at line 16 of file lasp_window.cpp.
Rectangular (boxcar) window.
len | Length of the window (typically, integer power of two). |
Definition at line 31 of file lasp_window.cpp.
|
inlinestatic |
Convert a window type enum to its equivalent text.
wt | The window type to convert |
Definition at line 25 of file lasp_window.h.