|
ldas-tools-filters
2.6.6
|
A class representing a Hann window. More...
#include <HannWindow.hh>
Public Member Functions | |
| virtual std::string | name () const |
| Return window name. More... | |
| virtual double | param () const |
| Return window parameter. More... | |
| virtual HannWindow * | Clone () const |
| Clone a window. More... | |
| virtual std::string | name () const |
| Return window name. More... | |
| virtual double | param () const |
| Return window parameter. More... | |
| virtual HannWindow * | Clone () const |
| Clone a window. More... | |
| virtual std::string | name () const |
| Return window name. More... | |
| virtual double | param () const |
| Return window parameter. More... | |
| virtual HannWindow * | 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... | |
A class representing a Hann 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 Hann window is defined by
w[i] = 0.5*(1.0 - cos(2*LDAS_PI*i/(n-1)))
for i = 0,1, ... n-1
| [in] | i | the value at which the window is evaluated |
Implements Filters::Window.
|
privatevirtual |
Get the ith element of the window.
A Hann window is defined by
w[i] = 0.5*(1.0 - cos(2*LDAS_PI*i/(n-1)))
for i = 0,1, ... n-1
| [in] | i | the value at which the window is evaluated |
Implements Filters::Window.
|
privatevirtual |
Get the ith element of the window.
A Hann window is defined by
w[i] = 0.5*(1.0 - cos(2*LDAS_PI*i/(n-1)))
for i = 0,1, ... n-1
| [in] | i | the value 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.
|
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.
|
inherited |
Return RMS value of window.
|
inlineinherited |
Return RMS value of window.
|
inlineinherited |
Return window length.
|
inherited |
Return window length.
|
inherited |
Return window length.
1.8.13