说明: 紧支撑小波基的构造。
以Daubechies小波滤波器系数为例,推导出小波函数及尺度函数,并画出其图像.
void Convolution(double* pShortData, int nShort, double* pLongData, int nLong)
int CalcScaleFunction(double* pOutData)
int CalcWaveletFunction(double* pOutData)
Convolution()不是通用的离散卷积代码,而是简单地实现了后面两个函数需要的离散卷积,它要求输入的前一个数组长度小于后一数组长度,而且卷积结果就直接覆盖存储在后一数组中。CalcScaleFunction()计算尺度函数,CalcWaveletFunction()计算小波函数。
(Compactly supported wavelet bases constructed. To Daubechies wavelet filter coefficients as an example, the derived wavelet function and scaling function, and draw their images. Void Convolution (double* pShortData, int nShort, double* pLongData, int nLong) int CalcScaleFunction (double* pOutData) int CalcWaveletFunction ( double* pOutData) Convolution () instead of generic discrete convolution code, but simply the realization of a function behind the need for two discrete convolution, which requires input before an array length is less than the array length of the latter, but the result of convolution directly covered by the latter is stored in the array. CalcScaleFunction () calculated scaling function, CalcWaveletFunction () calculation of wavelet function.)