From 1b34b65fb6df8f7cab279652cd29e758f7dee1b0 Mon Sep 17 00:00:00 2001 From: Rafat Hussain Date: Sun, 20 Aug 2017 18:44:06 +0530 Subject: [PATCH] commit : "haar" added to MODWT --- src/wavelib.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/wavelib.c b/src/wavelib.c index a2157d9..bdb1d7c 100644 --- a/src/wavelib.c +++ b/src/wavelib.c @@ -70,11 +70,13 @@ wt_object wt_init(wave_object wave,char* method, int siglength,int J) { } else if (!strcmp(method, "modwt") || !strcmp(method, "MODWT")) { - if (!strstr(wave->wname,"db")) { - if (!strstr(wave->wname, "sym")) { - if (!strstr(wave->wname, "coif")) { - printf("\n MODWT is only implemented for orthogonal wavelet families - db, sym and coif \n"); - exit(-1); + if (!strstr(wave->wname,"haar")) { + if (!strstr(wave->wname,"db")) { + if (!strstr(wave->wname, "sym")) { + if (!strstr(wave->wname, "coif")) { + printf("\n MODWT is only implemented for orthogonal wavelet families - db, sym and coif \n"); + exit(-1); + } } } }