ldas-tools-filters
2.6.6
|
A class representing a rectangular window. More...
#include <RectangularWindow.hh>
Public Member Functions | |
virtual std::string | name () const |
Return window name. More... | |
virtual double | param () const |
Return window parameter. More... | |
virtual RectangularWindow * | Clone () const |
Clone a window. More... | |
virtual std::string | name () const |
Return window name. More... | |
virtual double | param () const |
Return window parameter. More... | |
virtual RectangularWindow * | Clone () const |
Clone a window. More... | |
virtual std::string | name () const |
Return window name. More... | |
virtual double | param () const |
Return window parameter. More... | |
virtual RectangularWindow * | Clone () const |
Clone a window. More... | |
size_t | size () const |
Return window length. More... | |
size_t | size () const |
Return window length. More... | |
size_t | size () const |
Return window length. More... | |
double | mean () const |
Return mean value of window. More... | |
double | mean () const |
Return mean value of window. More... | |
double | mean () const |
Return mean value of window. More... | |
double | rms () const |
Return RMS value of window. More... | |
double | rms () const |
Return RMS value of window. More... | |
double | rms () const |
Return RMS value of window. More... | |
void | resize (const size_t n) |
Change the size of the window. More... | |
void | resize (const size_t n) |
Change the size of the window. More... | |
void | resize (const size_t n) |
Change the size of the window. More... | |
template<class T > | |
void | apply (std::valarray< T > &x) |
Apply a window to the data in-place. More... | |
template<class TOut , class TIn > | |
void | apply (std::valarray< TOut > &out, const std::valarray< TIn > &in) |
Apply a window to the data out-of-place. More... | |
template<class T > | |
void | apply (std::valarray< T > &x) |
Apply a window to the data in-place. More... | |
template<class TOut , class TIn > | |
void | apply (std::valarray< TOut > &out, const std::valarray< TIn > &in) |
Apply a window to the data out-of-place. More... | |
template<class T > | |
void | apply (std::valarray< T > &x) |
Apply a window to the data in-place. More... | |
template<class TOut , class TIn > | |
void | apply (std::valarray< TOut > &out, const std::valarray< TIn > &in) |
Apply a window to the data out-of-place. More... | |
template<class TOut , class TIn > | |
void | operator() (std::valarray< TOut > &out, const std::valarray< TIn > &in) |
Synonym for apply. More... | |
template<class TOut , class TIn > | |
void | operator() (std::valarray< TOut > &out, const std::valarray< TIn > &in) |
Synonym for apply. More... | |
template<class TOut , class TIn > | |
void | operator() (std::valarray< TOut > &out, const std::valarray< TIn > &in) |
Synonym for apply. More... | |
Protected Member Functions | |
void | populate () |
Populate the elements of the window. More... | |
void | populate () |
Populate the elements of the window. More... | |
void | populate () |
Populate the elements of the window. More... | |
Private Member Functions | |
virtual double | element (const size_t i) const |
Get the ith element of the window. More... | |
virtual double | element (const size_t i) const |
Get the ith element of the window. More... | |
virtual double | element (const size_t i) const |
Get the ith element of the window. More... | |
void | multiply_by_window (std::valarray< float > &out) |
Multiply a sequence of floats by the window. More... | |
void | multiply_by_window (std::valarray< double > &out) |
Multiply a sequence of doubles by the window. More... | |
void | multiply_by_window (std::valarray< std::complex< float > > &out) |
Multiply a sequence of complex floats by the window. More... | |
void | multiply_by_window (std::valarray< std::complex< double > > &out) |
Multiply a sequence of complex doubles by the window. More... | |
void | multiply_by_window (std::valarray< float > &out) |
Multiply a sequence of floats by the window. More... | |
void | multiply_by_window (std::valarray< double > &out) |
Multiply a sequence of doubles by the window. More... | |
void | multiply_by_window (std::valarray< std::complex< float > > &out) |
Multiply a sequence of complex floats by the window. More... | |
void | multiply_by_window (std::valarray< std::complex< double > > &out) |
Multiply a sequence of complex doubles by the window. More... | |
void | multiply_by_window (std::valarray< float > &out) |
Multiply a sequence of floats by the window. More... | |
void | multiply_by_window (std::valarray< double > &out) |
Multiply a sequence of doubles by the window. More... | |
void | multiply_by_window (std::valarray< std::complex< float > > &out) |
Multiply a sequence of complex floats by the window. More... | |
void | multiply_by_window (std::valarray< std::complex< double > > &out) |
Multiply a sequence of complex doubles by the window. More... | |
Private Attributes | |
std::valarray< float > | m_f_window |
a sequence for holding a window of floats More... | |
std::valarray< double > | m_d_window |
a sequence for holding a window of doubles More... | |
double | m_mean |
mean value of window elements More... | |
double | m_rms |
rms value of window elements More... | |
bool | m_is_float |
true if window elements are floats More... | |
A class representing a rectangular window.
|
inherited |
Apply a window to the data in-place.
[in,out] | x | input/output sequence |
std::length_error | thrown if desired window length is greater than maximum allowed value |
std::bad_alloc | thrown if not able to allocate memory for window |
|
inherited |
Apply a window to the data in-place.
[in,out] | x | input/output sequence |
std::length_error | thrown if desired window length is greater than maximum allowed value |
std::bad_alloc | thrown if not able to allocate memory for window |
|
inherited |
Apply a window to the data in-place.
[in,out] | x | input/output sequence |
std::length_error | thrown if desired window length is greater than maximum allowed value |
std::bad_alloc | thrown if not able to allocate memory for window |
|
inherited |
Apply a window to the data out-of-place.
[out] | out | windowed sequence |
[in] | in | input sequence |
std::length_error | thrown if desired window length is greater than maximum allowed value |
std::bad_alloc | thrown if not able to allocate memory for window |
|
inherited |
Apply a window to the data out-of-place.
[out] | out | windowed sequence |
[in] | in | input sequence |
std::length_error | thrown if desired window length is greater than maximum allowed value |
std::bad_alloc | thrown if not able to allocate memory for window |
|
inherited |
Apply a window to the data out-of-place.
[out] | out | windowed sequence |
[in] | in | input sequence |
std::length_error | thrown if desired window length is greater than maximum allowed value |
std::bad_alloc | thrown if not able to allocate memory for window |
|
virtual |
|
virtual |
|
virtual |
|
privatevirtual |
Get the ith element of the window.
A rectangular window is defined by
w[i] = 1.0
for i = 0,1, ... n-1.
[in] | i | element at which the window is evaluated |
Implements Filters::Window.
|
privatevirtual |
Get the ith element of the window.
A rectangular window is defined by
w[i] = 1.0
for i = 0,1, ... n-1.
[in] | i | element at which the window is evaluated |
Implements Filters::Window.
|
privatevirtual |
Get the ith element of the window.
A rectangular window is defined by
w[i] = 1.0
for i = 0,1, ... n-1.
[in] | i | element at which the window is evaluated |
Implements Filters::Window.
|
inlineinherited |
Return mean value of window.
|
inherited |
Return mean value of window.
|
inherited |
Return mean value of window.
|
privateinherited |
Multiply a sequence of doubles by the window.
[in,out] | out | input (and output) sequence |
|
privateinherited |
Multiply a sequence of doubles by the window.
[in,out] | out | input (and output) sequence |
|
privateinherited |
Multiply a sequence of doubles by the window.
[in,out] | out | input (and output) sequence |
|
privateinherited |
Multiply a sequence of floats by the window.
[in,out] | out | input (and output) sequence |
|
privateinherited |
Multiply a sequence of floats by the window.
[in,out] | out | input (and output) sequence |
|
privateinherited |
Multiply a sequence of floats by the window.
[in,out] | out | input (and output) sequence |
|
privateinherited |
Multiply a sequence of complex doubles by the window.
[in,out] | out | input (and output) sequence |
|
privateinherited |
Multiply a sequence of complex doubles by the window.
[in,out] | out | input (and output) sequence |
|
privateinherited |
Multiply a sequence of complex doubles by the window.
[in,out] | out | input (and output) sequence |
|
privateinherited |
Multiply a sequence of complex floats by the window.
[in,out] | input | (and output) sequence |
|
privateinherited |
Multiply a sequence of complex floats by the window.
[in,out] | input | (and output) sequence |
|
privateinherited |
Multiply a sequence of complex floats by the window.
[in,out] | input | (and output) sequence |
|
virtual |
|
virtual |
|
virtual |
|
inherited |
Synonym for apply.
[out] | out | windowed sequence |
[in] | in | input sequence |
std::length_error | thrown if desired window length is greater than maximum allowed value |
std::bad_alloc | thrown if not able to allocate memory for window |
|
inherited |
Synonym for apply.
[out] | out | windowed sequence |
[in] | in | input sequence |
std::length_error | thrown if desired window length is greater than maximum allowed value |
std::bad_alloc | thrown if not able to allocate memory for window |
|
inherited |
Synonym for apply.
[out] | out | windowed sequence |
[in] | in | input sequence |
std::length_error | thrown if desired window length is greater than maximum allowed value |
std::bad_alloc | thrown if not able to allocate memory for window |
|
virtual |
|
virtual |
|
virtual |
|
protectedinherited |
Populate the elements of the window.
This function will usually need to be called by a derived class whenever the the window is changed in any way which affects the element() function, such as when some window parameter is altered.
|
protectedinherited |
Populate the elements of the window.
This function will usually need to be called by a derived class whenever the the window is changed in any way which affects the element() function, such as when some window parameter is altered.
|
protectedinherited |
Populate the elements of the window.
This function will usually need to be called by a derived class whenever the the window is changed in any way which affects the element() function, such as when some window parameter is altered.
|
inherited |
Change the size of the window.
[in] | n | desired length of window |
std::length_error | thrown if desired window length is greater than maximum allowed value |
std::bad_alloc | thrown if not able to allocate memory for the window |
|
inherited |
Change the size of the window.
[in] | n | desired length of window |
std::length_error | thrown if desired window length is greater than maximum allowed value |
std::bad_alloc | thrown if not able to allocate memory for the window |
|
inherited |
Change the size of the window.
[in] | n | desired length of window |
std::length_error | thrown if desired window length is greater than maximum allowed value |
std::bad_alloc | thrown if not able to allocate memory for the window |
|
inlineinherited |
Return RMS value of window.
|
inherited |
Return RMS value of window.
|
inherited |
Return RMS value of window.
|
inlineinherited |
Return window length.
|
inherited |
Return window length.
|
inherited |
Return window length.
|
privateinherited |
a sequence for holding a window of doubles
|
privateinherited |
a sequence for holding a window of floats
|
privateinherited |
true if window elements are floats
|
privateinherited |
mean value of window elements
|
privateinherited |
rms value of window elements