#include <packdata.h>
Inheritance diagram for packdata::
Public Types | |
enum | transformKind { BadNodeKind, OriginalData, LowPass, HighPass } |
Public Methods | |
packdata (T *vec, const size_t n, const transformKind k) | |
| |
virtual | ~packdata () |
define a virtual destructure which in the base class. More... | |
void* | operator new (unsigned int num_bytes) |
Overload the standard new operator and allocate memory from the memory pool. More... | |
void | pr () const |
print the data. More... | |
const T* | getData () |
get a pointer to the data. More... | |
const transformKind | getKind () |
Return the "kind" of data (e.g., original data, low pass result, high pass result). More... | |
size_t | length () |
return the length of the array in the packdata object. More... | |
Protected Methods | |
packdata () | |
default constructor. More... | |
Protected Attributes | |
transformKind | kind |
Kind of data: original data, result of the low pass filer (wavelet scaling function), result of the high pass filter (wavelet function). More... | |
size_t | N |
number of elements at this packet tree level. More... | |
T* | data |
Wavelet packet data. More... | |
Private Methods | |
packdata (const packdata &rhs) | |
Disallow the copy constructor. More... |
This class serves as the base class for the packnode class. It is also the element used in the list that results from the wavelet packet transform. This list represents the data in a minimal for, relative to the wavelet packet transform cost function.
Definition at line 53 of file packdata.h.
|
Definition at line 59 of file packdata.h. 00059 { BadNodeKind, 00060 OriginalData, 00061 LowPass, 00062 HighPass } transformKind; |
|
Disallow the copy constructor.
Definition at line 56 of file packdata.h. 00056 {} |
|
default constructor.
Definition at line 77 of file packdata.h. 00077 {} |
|
Definition at line 86 of file packdata.h. 00087 { 00088 data = vec; 00089 N = n; 00090 kind = k; 00091 } |
|
define a virtual destructure which in the base class.
Definition at line 94 of file packdata.h. 00094 {} |
|
get a pointer to the data.
Definition at line 120 of file packdata.h. Referenced by invpacktree_int::add_elem(), invpacktree::add_elem(), calcPacketWidth(), costwidth::costCalc(), costshannon::costCalc(), invpacktree_int::new_level(), and invpacktree::new_level().
00120 { return data; } |
|
Return the "kind" of data (e.g., original data, low pass result, high pass result).
Definition at line 126 of file packdata.h. Referenced by packtree_int::checkBestBasis(), and packtree::checkBestBasis().
00126 { return kind; } |
|
return the length of the array in the packdata object.
Definition at line 129 of file packdata.h. Referenced by invpacktree_int::add_elem(), invpacktree::add_elem(), calcPacketWidth(), costwidth::costCalc(), costthresh::costCalc(), costshannon::costCalc(), packtree_base_int::newLevel(), packtree_base::newLevel(), invpacktree_int::new_level(), invpacktree::new_level(), packcontainer::packcontainer(), and packcontainer_int::packcontainer_int().
00129 { return N; } |
|
Overload the standard new operator and allocate memory from the memory pool.
Definition at line 100 of file packdata.h. 00101 { 00102 block_pool mem_pool; 00103 00104 void *mem_addr = mem_pool.pool_alloc( num_bytes ); 00105 return mem_addr; 00106 } // new |
|
print the data.
Definition at line 110 of file packdata.h. Referenced by packtree_base_int::breadthFirstPrint(), packtree_base::breadthFirstPrint(), and packdata_list::pr().
00111 { 00112 for (int i = 0; i < N; i++) { 00113 printf("%7.4f ", data[i] ); 00114 } 00115 printf("\n"); 00116 } // pr |
|
number of elements at this packet tree level.
Definition at line 71 of file packdata.h. |
|
Wavelet packet data.
Definition at line 74 of file packdata.h. |
|
Kind of data: original data, result of the low pass filer (wavelet scaling function), result of the high pass filter (wavelet function).
Definition at line 68 of file packdata.h. |