BaseWindow¶
-
class BaseWindow : public tsa::AlgoBase¶
Base class for various windowing algorithms.
Subclassed by tsa::BartlettWindow, tsa::BisquareWindow, tsa::Cs2HammingWindow, tsa::Cs2HannWindow, tsa::KaiserWindow, tsa::TukeyHannWindow, tsa::TukeyWindow, tsa::WelchWindow
Setters
-
virtual void Normalize()¶
Operations
-
virtual void operator()(SeqViewDouble &v1)¶
-
virtual void operator()(SeqViewDouble &v1, SeqViewDouble &v2)¶
-
void execute(Dmatrix &in, Dmatrix &out)¶
Apply the window to each row of the input data matrix, writing the result on the output data matrix.
- Parameters:
in – input matrix of data
out – output matrix of data
-
void execute(Dmatrix &in, Dmatrix &out, unsigned int offset)¶
-
void execute(Dmatrix &inout)¶
Apply the window to each row of the data matrix, writing the result on the matrix itself.
- Parameters:
inout – data matrix
-
void execute(Dvector &inout)¶
-
double operator()(int i)¶
Get the value of the window at a given index.
- Returns:
the value of the window at the given plage
-
virtual void Resize(unsigned int size)¶
Resize the window dimension.
- Parameters:
size – new size for the window
-
static double CrossAverage(BaseWindow &w1, BaseWindow &w2)¶
-
static double CrossSquareAverage(BaseWindow &w1, BaseWindow &w2)¶
Getters
-
unsigned int GetSize()¶
Get the actual size of the window.
- Returns:
the actual size of the window
-
virtual void Normalize()¶