#include <costbase_int.h>
Inheritance diagram for costbase_int::
Public Methods | |
costbase_int () | |
The default constructor does nothing. More... | |
Protected Methods | |
void | traverse (packnode< int > *node) |
Recursively traverse the wavelet packet tree and calculate the cost function. More... | |
virtual int | costCalc (packnode< int > *node)=0 |
Cost function to be defined by the subclass. More... | |
Private Methods | |
costbase_int (const costbase_int &rhs) | |
disallow the copy constructor. More... |
The costbase base class provides a constructor that is passed the root of an integer wavelet packet tree (which is built by packtree_int.cpp). The integer wavelet packet tree is constructed from packnode<int> objects (which are a subclass of the packdata).
The cost function calculation invoked by the constructor traverses the wavelet packet tree (top down) and calls costCalc on each node in the tree. The cost function result is stored in the node. Note that the cost function also calculates a cost value for the original data, since in theory the original data may represent the minimal representation for the data in terms of the cost function.
The pure virtual function costCalc, which calculates the cost function, must be defined by the subclass.
A description of the cost functions associated with the wavelet packet transform can be found in Chapter 8 of Ripples in Mathematics by Jense and la Cour-Harbo.
Definition at line 66 of file costbase_int.h.
|
disallow the copy constructor.
Definition at line 70 of file costbase_int.h. 00070 {} |
|
The default constructor does nothing.
Definition at line 93 of file costbase_int.h. 00093 {} |
|
Cost function to be defined by the subclass.
Reimplemented in costwidth. Referenced by traverse().
|
|
Recursively traverse the wavelet packet tree and calculate the cost function.
Definition at line 77 of file costbase_int.h. Referenced by costwidth::costwidth().
|