mirror of
https://github.com/simon987/wavelib.git
synced 2025-04-19 18:16:44 +00:00
commit : "haar" added to MODWT
This commit is contained in:
parent
87c0e462dc
commit
1b34b65fb6
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user