Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

costwidth.cpp

Go to the documentation of this file.
00001 
00034 
00035 #include "costwidth.h"
00036 #include "support.h"
00037 
00038 int 
00039 costwidth::costCalc( packnode<int> *root )
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

Generated at Sat Aug 10 13:23:34 2002 for Wavelet Packet Transform and Lossless Compression by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001