#include <costthresh.h>
Inheritance diagram for costthresh::
Public Methods | |
costthresh (packnode< double > *node, double t) | |
class constructor: calculate the wavelet packet cost function using a simple threshold, t. More... | |
Protected Methods | |
double | costCalc (packnode< double > *node) |
This is a simple threshold calculation. More... | |
Private Methods | |
double | abs (const double x) |
absolute value. More... | |
Private Attributes | |
double | thresh |
cost threshold. More... |
This threshold value is initialized in the constructor.
The costbase class provides the wavelet packet tree traversal function which calls the subclass's cost function.
Definition at line 54 of file costthresh.h.
|
class constructor: calculate the wavelet packet cost function using a simple threshold, t.
Definition at line 93 of file costthresh.h. 00094 { 00095 thresh = t; 00096 traverse( node ); 00097 } |
|
absolute value.
Definition at line 61 of file costthresh.h. Referenced by costCalc().
00062 { 00063 double retval = x; 00064 if (retval < 0.0) 00065 retval = -retval; 00066 return retval; 00067 } // abs |
|
This is a simple threshold calculation. The costCalc function returns the number of node data values whose absolute value is greater than the threshold. Reimplemented from costbase. Definition at line 76 of file costthresh.h. |
|
cost threshold.
Definition at line 58 of file costthresh.h. |