commit : "haar" added to MODWT

This commit is contained in:
Rafat Hussain 2017-08-20 18:44:06 +05:30
parent 87c0e462dc
commit 1b34b65fb6

View File

@ -70,6 +70,7 @@ wt_object wt_init(wave_object wave,char* method, int siglength,int J) {
} }
else if (!strcmp(method, "modwt") || !strcmp(method, "MODWT")) { else if (!strcmp(method, "modwt") || !strcmp(method, "MODWT")) {
if (!strstr(wave->wname,"haar")) {
if (!strstr(wave->wname,"db")) { if (!strstr(wave->wname,"db")) {
if (!strstr(wave->wname, "sym")) { if (!strstr(wave->wname, "sym")) {
if (!strstr(wave->wname, "coif")) { if (!strstr(wave->wname, "coif")) {
@ -78,6 +79,7 @@ wt_object wt_init(wave_object wave,char* method, int siglength,int J) {
} }
} }
} }
}
obj = (wt_object)malloc(sizeof(struct wt_set) + sizeof(double)* (siglength * (J + 1))); obj = (wt_object)malloc(sizeof(struct wt_set) + sizeof(double)* (siglength * (J + 1)));
obj->outlength = siglength * (J + 1); // Default obj->outlength = siglength * (J + 1); // Default