#include <costwidth.h>
Inheritance diagram for costwidth::

Public Methods | |
| costwidth (packnode< int > *root) | |
Protected Methods | |
| int | costCalc (packnode< int > *root) | 
| Cost function to be defined by the subclass. More... | |
This cost function is used for lossless wavelet packet compression.
Definition at line 48 of file costwidth.h.
      
  | 
  
| 
 
 Definition at line 53 of file costwidth.h. 00053 { traverse( root ); }
 | 
  
      
  | 
  
| 
 Cost function to be defined by the subclass. 
 Reimplemented from costbase_int. Definition at line 39 of file costwidth.cpp. 00040 {
00041   assert( root != 0 );
00042 
00043   size_t N = root->length();
00044   const int *a = root->getData();
00045 
00046   int width = support::vecWidth( a, N );
00047 
00048   return width;
00049 } // costCalc
 | 
  
1.2.8.1 written by Dimitri van Heesch,
 © 1997-2001