LASP 1.0
Library for Acoustic Signal Processing
Loading...
Searching...
No Matches
Window Class Reference

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.
 

Detailed Description

Window (aka taper) functions of a certain type.

Definition at line 7 of file lasp_window.h.

Member Enumeration Documentation

◆ WindowType

enum class Window::WindowType
strong
Enumerator
Hann 
Hamming 
Rectangular 
Bartlett 
Blackman 

Definition at line 10 of file lasp_window.h.

Member Function Documentation

◆ bartlett()

vd Window::bartlett ( const us  len)
static

Bartlett window.

Parameters
lenLength of the window (typically, integer power of two).
Returns
vector of values

Definition at line 33 of file lasp_window.cpp.

◆ blackman()

vd Window::blackman ( const us  len)
static

Blackman window.

Parameters
lenLength of the window (typically, integer power of two).
Returns
vector of values

Definition at line 23 of file lasp_window.cpp.

◆ create()

vd Window::create ( const WindowType  w,
const us  len 
)
static

Dispatcher: create a window based on enum type and len.

Parameters
wWindow type
lenLength of the window (typically, integer power of two).
Returns
Window vector of values

Definition at line 36 of file lasp_window.cpp.

◆ hamming()

vd Window::hamming ( const us  len)
static

Hamming window.

Parameters
lenLength of the window (typically, integer power of two).
Returns
vector of values

Definition at line 19 of file lasp_window.cpp.

◆ hann()

vd Window::hann ( const us  len)
static

Hann window.

Parameters
lenLength of the window (typically, integer power of two).
Returns
vector of values

Definition at line 16 of file lasp_window.cpp.

◆ rectangular()

vd Window::rectangular ( const us  len)
static

Rectangular (boxcar) window.

Parameters
lenLength of the window (typically, integer power of two).
Returns
vector of values

Definition at line 31 of file lasp_window.cpp.

◆ toText()

static std::string Window::toText ( const WindowType  wt)
inlinestatic

Convert a window type enum to its equivalent text.

Parameters
wtThe window type to convert
Returns
Text string

Definition at line 25 of file lasp_window.h.


The documentation for this class was generated from the following files: