#include <dwt.hh>
Inheritance diagram for oln::internal::wavelet_coeffs_< T, N, Self >:
Public Types | |
typedef T | value_t |
Type of data used. | |
typedef Self | self_t |
Self type. | |
Public Member Functions | |
const value_t | getG (unsigned i) const |
Accessor to ith element of g. | |
const value_t | getInvG (unsigned i) const |
Accessor to ith element of ig. | |
const value_t | getH (unsigned i) const |
Accessor to ith element of h. | |
const value_t | getInvH (unsigned i) const |
Accessor to ith element of ih. | |
const unsigned | size () const |
Give the size of the arrays. | |
Protected Member Functions | |
void | init () |
Initialization method. | |
wavelet_coeffs_ () | |
Constructor. | |
~wavelet_coeffs_ () | |
Destructor. | |
Protected Attributes | |
mlc::array1d< mlc::array1d_info< N >, value_t > | h |
array of value_t. | |
mlc::internal::array1d_start_< value_t > | wc_start |
First coefficient. |
T | Coefficients data type. | |
N | Number of coefficients. | |
Self | Self type. |
Definition at line 87 of file dwt.hh.
oln::internal::wavelet_coeffs_< T, N, Self >::~wavelet_coeffs_ | ( | ) | [inline, protected] |
void oln::internal::wavelet_coeffs_< T, N, Self >::init | ( | ) | [inline, protected] |
Initialization method.
Fill coefficients.
Definition at line 112 of file dwt.hh.
00113 { 00114 for (unsigned i = 0; i < size_; i += 2) { 00115 g[i] = -h[size_ - 1 - i]; 00116 g[i + 1] = h[size_ - 2 - i]; 00117 ig[size_ - 1 - i] = g[i + 1]; 00118 ig[size_ - 2 - i] = h[i + 1]; 00119 ih[size_ - 1 - i] = g[i]; 00120 ih[size_ - 2 - i] = h[i]; 00121 } 00122 }