mirror of
https://github.com/simon987/wavelib.git
synced 2025-04-10 14:06:46 +00:00
commit : debugging waux
This commit is contained in:
parent
6e74f8a230
commit
e2f6ddafe0
@ -233,7 +233,6 @@ void sureshrink(double *signal,int N,int J,char *wname,char *method,char *ext,ch
|
||||
risk[i] = ((double)dwt_len - 2 * ((double)i + 1) +dsum[i] +
|
||||
dout[i]*((double)dwt_len - 1 -(double) i))/(double)dwt_len;
|
||||
}
|
||||
printf(" \n");
|
||||
min_index = minindex(risk,dwt_len);
|
||||
thr = sqrt(dout[min_index]);
|
||||
td = thr < tv ? thr : tv;
|
||||
|
@ -116,6 +116,7 @@ void getDWTDetail(wt_object wt, double *detail, int N, int level) {
|
||||
|
||||
if (level > J || level < 1) {
|
||||
printf("The decomposition only has 1,..,%d levels", J);
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
iter = wt->length[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user