#include <costbase.h>
Inheritance diagram for costbase::
Public Methods | |
costbase () | |
The default constructor does nothing. More... | |
Protected Methods | |
void | traverse (packnode< double > *node) |
Recursively traverse the wavelet packet tree and calculate the cost function. More... | |
virtual double | costCalc (packnode< double > *node)=0 |
Cost function to be defined by the subclass. More... | |
Private Methods | |
costbase (const costbase &rhs) | |
disallow the copy constructor. More... |
The costbase base class provides a constructor that is passed the root of a wavelet packet tree (which is built by packtree.cpp). The wavelet packet tree is constructed from packnode 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 68 of file costbase.h.
|
disallow the copy constructor.
Definition at line 72 of file costbase.h. 00072 {} |
|
The default constructor does nothing.
Definition at line 95 of file costbase.h. 00095 {} |
|
Cost function to be defined by the subclass.
Reimplemented in costshannon, and costthresh. Referenced by traverse().
|
|
Recursively traverse the wavelet packet tree and calculate the cost function.
Definition at line 79 of file costbase.h. Referenced by costshannon::costshannon(), and costthresh::costthresh().
|