MODWT branch added. Test for memory leaks

This commit is contained in:
Rafat Hussain
2019-03-20 18:27:57 +05:30
parent ec5006b262
commit e16859af59
8 changed files with 665 additions and 17 deletions

View File

@@ -19,6 +19,8 @@ struct denoise_set{
int J; // Levels of Wavelet decomposition
char wname[10]; //Wavelet name
char wmethod[10]; //Wavelet decomposition method - dwt or swt
char cmethod[10]; //Cnvolution Method - direct or fft . Available only for modwt.
// SWT and DWT only use direct method.
char ext[10]; // Signal Extension - sym or per
char thresh[10]; // thresholding - soft or hard
char level[10]; // Noise Estimation level - first or all
@@ -30,6 +32,8 @@ void visushrink(double *signal,int N,int J,const char *wname,const char *method,
void sureshrink(double *signal,int N,int J,const char *wname,const char *method,const char *ext,const char *thresh,const char *level,double *denoised);
void modwtshrink(double *signal, int N, int J, const char *wname, const char *cmethod, const char *ext, const char *thresh, double *denoised);
void denoise(denoise_object obj, double *signal,double *denoised);
void setDenoiseMethod(denoise_object obj, const char *dmethod);

1
header/wavelib.h Normal file → Executable file
View File

@@ -90,6 +90,7 @@ struct wt_set{
conv_object cobj;
char method[10];
int siglength;// Length of the original signal.
int modwtsiglength; // Modified signal length for MODWT
int outlength;// Length of the output DWT vector
int lenlength;// Length of the Output Dimension Vector "length"
int J; // Number of decomposition Levels