mirror of
https://github.com/simon987/wavelib.git
synced 2025-04-19 18:16:44 +00:00
commit : dout error corrected
This commit is contained in:
parent
cb01ae39ec
commit
fa68a811af
@ -220,6 +220,12 @@ void sureshrink(double *signal,int N,char *wname,char *method,char *ext,char *th
|
||||
td = tv;
|
||||
} else {
|
||||
x_sum = 0.0;
|
||||
|
||||
for(i = 0; i < dlen;++i) {
|
||||
dout[i] = wt->output[len+i];
|
||||
}
|
||||
|
||||
qsort(dout, N, sizeof(double), compare_double);
|
||||
for(i = 0; i < dwt_len;++i) {
|
||||
dout[i] = (dout[i]*dout[i]);
|
||||
x_sum += dout[i];
|
||||
|
Loading…
x
Reference in New Issue
Block a user