oln::internal::wavelet_coeffs_< T, N, Self > Struct Template Reference

Wavelet coefficient data structure. More...

#include <dwt.hh>

Inheritance diagram for oln::internal::wavelet_coeffs_< T, N, Self >:

Inheritance graph
[legend]
Collaboration diagram for oln::internal::wavelet_coeffs_< T, N, Self >:

Collaboration graph
[legend]
List of all members.

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.


Detailed Description

template<class T, unsigned N, class Self>
struct oln::internal::wavelet_coeffs_< T, N, Self >

Wavelet coefficient data structure.

Parameters:
T Coefficients data type.
N Number of coefficients.
Self Self type.

Definition at line 87 of file dwt.hh.


Constructor & Destructor Documentation

template<class T, unsigned N, class Self>
oln::internal::wavelet_coeffs_< T, N, Self >::~wavelet_coeffs_  )  [inline, protected]
 

Destructor.

Its aim is to check N is pair.

Definition at line 134 of file dwt.hh.

00135       {
00136         mlc::is_false<N % 2>::ensure();
00137       }


Member Function Documentation

template<class T, unsigned N, class Self>
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       }


The documentation for this struct was generated from the following file:
Generated on Thu Apr 15 20:16:23 2004 for Olena by doxygen 1.3.6-20040222