view wavelet.h @ 8:f0d2c9b5d3a3

bug fix: ACPower
author Wen X <xue.wen@elec.qmul.ac.uk>
date Fri, 15 Oct 2010 14:12:33 +0100
parents 5f3c32dc6e17
children 977f541d6683
line wrap: on
line source
#ifndef waveletH
#define waveletH

/**
  \file wavelet.h - wavelet routines
*/

//--wavelet filter routines--------------------------------------------------
void Daubechies(int p, double* h); //computes Daubechies filter
void splinewl(int p1, int p2, double* h1, double* h2); //compute spline biorthogonal wavelet filter
int splinewl(int p1, int p2, double* h, double* hm, double* g, double* gm, int normmode=0, int* points=0);//compute spline biorthogonal wavelet filter

//--periodic DWT and IDWT----------------------------------------------------
int dwtpqmf(double* in, int Count, int N, double* h, double* g, int M, double* out);
int dwtp(double* in, int Count, int N, double* h, double* g, int M, double* out);
int dwtp(double* in, int Count, int N, double* h, int Mh, double* g, int Mg, double* out);
int dwtp(double* in, int Count, int N, double* h, int sh, int eh, double* g, int sg, int eg, double* out);
void idwtp(double* in, int Count, int N, double* h, double* g, int M, double* out);
void idwtp(double* in, int Count, int N, double* h, int Mh, double* g, int Mg, double* out);
void idwtp(double* in, int Count, int N, double* h, int sh, int eh, double* g, int sg, int eg, double* out);

//--pseudo local cosine with wavelet packet----------------------------------
void wavpacqmf(double*** spec, double* data, int Count, int WID, int wid, int M, double* h, double* g);
void wavpac(double*** spec, double* data, int Count, int WID, int wid, double* h, int hs, int he, double* g, int gs, int ge);
void iwavpacqmf(double* data, double** spec, int Fr, int Wid, int M, double* h, double* g);
void iwavpac(double* data, double** spec, int Fr, int Wid, double* h, int hs, int he, double* g, int gs, int ge);

#endif