ldas-tools-filters
2.6.6
|
A class representing a Kaiser window. More...
#include <KaiserWindow.hh>
Public Member Functions | |
KaiserWindow (const double beta=KaiserWindowDefaultBeta) | |
Constructor. More... | |
double | beta () const |
Get the beta parameter for this window. More... | |
void | set_beta (const double &beta) |
Set the beta parameter for this window. More... | |
virtual std::string | name () const |
Return window name. More... | |
virtual double | param () const |
Return window parameter. More... | |
virtual KaiserWindow * | Clone () const |
Clone a window. More... | |
KaiserWindow (const double beta=KaiserWindowDefaultBeta) | |
Constructor. More... | |
double | beta () const |
Get the beta parameter for this window. More... | |
void | set_beta (const double &beta) |
Set the beta parameter for this window. More... | |
virtual std::string | name () const |
Return window name. More... | |
virtual double | param () const |
Return window parameter. More... | |
virtual KaiserWindow * | Clone () const |
Clone a window. More... | |
KaiserWindow (const double beta=KaiserWindowDefaultBeta) | |
Constructor. More... | |
double | beta () const |
Get the beta parameter for this window. More... | |
void | set_beta (const double &beta) |
Set the beta parameter for this window. More... | |
virtual std::string | name () const |
Return window name. More... | |
virtual double | param () const |
Return window parameter. More... | |
virtual KaiserWindow * | 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... | |
A class representing a Kaiser window.
|
explicit |
Constructor.
std::invalid_argument | thrown if beta is less than 0 |
|
explicit |
Constructor.
std::invalid_argument | thrown if beta is less than 0 |
|
explicit |
Constructor.
std::invalid_argument | thrown if beta is less than 0 |
|
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 |
double Filters::KaiserWindow::beta | ( | ) | const |
Get the beta parameter for this window.
double Filters::KaiserWindow::beta | ( | ) | const |
Get the beta parameter for this window.
|
inline |
Get the beta parameter for this window.
|
virtual |
|
virtual |
|
virtual |
|
inlineinherited |
Return mean value of window.
|
inherited |
Return mean value of window.
|
inherited |
Return mean value of window.
|
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 |
|
inherited |
Return RMS value of window.
|
inlineinherited |
Return RMS value of window.
|
inherited |
Return RMS value of window.
void Filters::KaiserWindow::set_beta | ( | const double & | beta | ) |
Set the beta parameter for this window.
std::invalid_argument | thrown if beta is less than 0 |
void Filters::KaiserWindow::set_beta | ( | const double & | beta | ) |
Set the beta parameter for this window.
std::invalid_argument | thrown if beta is less than 0 |
void Filters::KaiserWindow::set_beta | ( | const double & | beta | ) |
Set the beta parameter for this window.
std::invalid_argument | thrown if beta is less than 0 |
|
inlineinherited |
Return window length.
|
inherited |
Return window length.
|
inherited |
Return window length.