首页 > Python资料 博客日记
小波变换算法详解(附Python和C++代码)
2025-01-07 18:00:06Python资料围观30次
小波变换算法是将初始数据分解为低频和高频的两组数据,再由这两组数据重新构造初始数据的算法(与傅里叶变换算法类似)。一般来说小波变换常用于数据降噪领域,也可以用于对数据进行压缩、数据特征提取、特征增强等方面。
小波算法很难理解对不对,博主也觉得难理解,不过,算法本身并没有特别复杂,简单说就使把数据分解然后再重构这两个步骤。只要知道这两个步骤,剩下的就是顺水推舟,容易理解多了。
小波分解:
分解的步骤其实就是将初始数据与滤波器数据做内积。也就是初始数据上的每一个数与滤波器数据上的每一个数相乘再相加。与低通滤波器做内积得到的就是近似系数,与高通滤波器做内积得到的就使细节系数(近似系数不仅可以用于降噪也可以用于求取数据基线)。只不过,做内积的时候,不是直接让两组数据做内积,而是在初始数据里面每隔一位数据就提取出一组与滤波器的长度相等的一组数据,将这组新数据与滤波器进行做内积,做完内积以后得到的结果就是这组数据的中间位置数据在初始数据上的数据进行小波分解以后得到的结果。
每隔两位取一组数据与滤波器做内积,所有初始数据经过内积运算后得到的结果就是小波分解的结果。使用两个滤波器分解后最终会得到两组数据,一组使用低通滤波器得到的近似系数,一组是使用高通滤波器得到的细节系数。到这了也就完成了小波分解的第一层分解,但是实际上在使用时,小波分解的层数几乎不会有一层的情况,仅仅使用一层分解无法解决大部分的实际问题。
这里还要注意小波分解是的信号拓展,没有拓展的话,变换后的信号边缘会出现剧烈波动,导致信号处理不准确。
这里要提一下数据填充的概念,因为小波变换时,每位数据需要借用附近的其他数据一起进行计算,但是两端的数据有一侧是无法借用的,这会导致变换后的数据两端出现剧烈波动,因此需要对数据的前后两端进行数据填充,从而保证每一位数据都能够使用附近的其他数据。这里最好用的反对称填充,能够保证数据的连贯性和数据变化趋势:这种方法可以理解为将原本的数据旋转180度,然后对接在数据的前后两端:
... (2*x1 - x3)、(2*x1 - x2)、| x1、x2、... xn | (2*xn - xn-1)、(2*xn - xn-2) ...
下图是小波分解的结构图:
小波分解的计算步骤为:假设初始数据为:x1、x2、x3、……xn;滤波器系数为y1、y2、y3、y4、y5、y6、y7、y8;小波分解的结果为z1、z2、z3、……z(n/2)(这里注意,每一次小波分解都会使数据长度减半);那么:z=[x]×[y]
第四个分解结果为:z4=x2×y1+x3×y2+x4×y3+x5×y4+x6×y5+x7×y6+x8×y7+x9×y8
第五个分解结果为:z5=x4×y1+x5×y2+x6×y3+x7×y4+x8×y5+x9×y6+x10×y7+x11×y8
……剩下的每一位分解结果以此类推。(前面三位小波分解需要在数据的最前面加上数据填充,公式表述不方便,不过原理是一样的)。
最终会得到使用低通滤波器得到的近似系数z(近似)和使用高通滤波器得到的细节系数z(细节)。
以上是一次小波分解的结果,后面的每一次小波分解都是需要将近似系数作为初始数据在使用上述的步骤进行分解,得到新的近似系数和细节系数(这里注意,分解后,上一个近似系数就要舍弃了,保留新的近似系数;但是每一次分解得到的细节系数都要保留,用于后续的数据重构的步骤)。
(注意:每一次小波分解时的数据必须是偶数位长度的,如果不是,就在数据的最后添加一个数据凑够偶数位。)
小波重构
相比于小波分解,小波重构则复杂了一些,不过计算时的大体思路与小波分解的类似的。重构时需要将分解后的近似系数和细节系数分别与重构的低通滤波器和高通滤波器的奇数位数据和偶数位数据分别做内积,将近似系数和细节系数做内积后的结果进行组合得到的就是重构后的结果,重构时,奇数位与偶数位的结果前后排列,从而实现将重构后数据的整体长度翻倍。
小波重构的计算步骤如下:
假设近似系数为:x1、x2、x3、……xn;重构的低通滤波器系数为:y1、y2、y3、y4、y5、y6、y7、y8;重构后的结果为:z1、z2、z3、……z(2n)。那么:
第五位重构结果为:z5=a1×b1+a2×b3+a3×b5+a4×b7
第六位重构结果为:z6=a2×b2+a3×b4+a4×b6+a5×b8
第七位重构结果为:z7=a2×b1+a3×b3+a4×b5+a5×b7
第八位重构结果为:z8=a3×b2+a4×b4+a5×b6+a6×b8
………后续结果以此类推。(前四位数据计算时需要使用最后几位数据进行补位,最后几位数据也是同理,不过计算步骤都一样)
细节系数使用高通滤波器进行重构,计算过程与上述步骤一样。
这里需要注意的是,每一位使用低通滤波器和高通滤波器算出的结果都要相加,才能得到真正重构后的结果。
另外,小波变换的方法是固定的,但是滤波器却有很多,主要包括:
“db系列”的“db1”、“db2”、“db3”、“db4”、“db5”、……“db15”;
“bior系列”的“bior1.1”、“bior1.3”、“bior1.5”、“bior2.2”、“bior2.4”、“bior2.6”、“bior2.8”、“bior3.1”、“bior3.3”、“bior3.5”、“bior3.7”、“bior3.9”、“bior4.4”、“bior5.5”、“bior6.8”;
“coif系列”的“coif1”、“coif2”、“coif3”、“coif4”、“coif5”;
“sym系列”的“sym2”、“sym3”、“sym4”、“sym5”、“sym6”、“sym7”、“sym8”、“sym9”、“sym10”。
不同的小波滤波器适合处理不同的问题。
用Python和matlab做小波变换都挺方便的,因为官方发布的有专属的小波变换包,但是C++做小波变换就很麻烦,没包啊,,不过博主手写了一份小波变换的C++代码,可以直接复制粘贴拿走用。
Python代码:(使用前要用CMD执行:pip install PyWavelets,安装所需要的包)
data=[100,0,100,0,100,0,100,0,100,0,100,0,100,0,100,0,100,0,100,0,100,0]
def wavelet_denoising(data, wavelet, level,value):#data是初始数据,wavelet是小波滤波器名称,level是分解层数,value是阈值
coeff = pywt.wavedec(data, wavelet, level=level)#小波分解
coeff[1:] = (pywt.threshold(i, value=value, mode='hard') for i in coeff[1:])#阈值降噪
return pywt.waverec(coeff, wavelet)#小波重构
wt_data = wavelet_denoising(data, 'sym4', 4 ,16.0)
print(wt_data)
C++代码:(使用Qt写的)
QVector<double> xbfj(QVector<double> sj, QString wavelet, int cs,int yz){//使用的时候直接调用这个函数就可以。sj是初始数据,wavelet是滤波器名称,cs是分解层数,yz是降噪阈值
QVector<double> xdata=sj;
QVector<QVector<double>> fjgtjg={};
QVector<double> fjdtdata={};
QVector<double> fjgtdata={};
QVector<double> lp2_a = hqdtfjxs(wavelet);
QVector<double> hp2_a = hqgtfjxs(wavelet);
QVector<double> lp1_a = hqcgdtxs(wavelet);
QVector<double> hp1_a = hqcggtxs(wavelet);
double qxh=xdata[0];
double hxh=xdata[xdata.size()-1];
int sjgs=xdata.size();
for(int i=1;i<sjgs;i++){
xdata.push_back(2*hxh-xdata[xdata.size()-1-i]);
xdata.insert(0,2*qxh-xdata[i]);
}
for (int cs0=0;cs0<cs;cs0++){
if(!fjdtdata.isEmpty()){
xdata=fjdtdata;
fjdtdata={};
fjgtdata={};
}
if(xdata.size()>4){
if(xdata.size()%2!=0){
xdata.append(xdata[xdata.size()-1]);
}
for(int i=0;i<xdata.size();i+=2){
double fjjg=0;
double fjgt=0;
for(int i0=0;i0<lp2_a.size();i0++){
if(i+i0-3<0){
fjjg+=xdata[xdata.size()+i+i0-3]*lp2_a[i0];
fjgt+=xdata[xdata.size()+i+i0-3]*hp2_a[i0];
}
else if(i+i0-3>xdata.size()-1){
fjjg+=xdata[-xdata.size()+i+i0-3]*lp2_a[i0];
fjgt+=xdata[-xdata.size()+i+i0-3]*hp2_a[i0];
}
else{
fjjg+=xdata[i+i0-3]*lp2_a[i0];
fjgt+=xdata[i+i0-3]*hp2_a[i0];
}
}
fjdtdata.append(fjjg);
fjgtdata.append(fjgt);
}
fjgtjg.insert(0,fjgtdata);
}
else{
fjdtdata=xdata;
break;
}
}
for(int i=0;i<fjgtjg.size();i++){
for(int i0=0;i0<fjgtjg[i].size();i0++){
if(abs(fjgtjg[i][i0])<yz){
fjgtjg[i][i0]=0;
}
}
}
QVector<double> cgdata={};
xdata=fjdtdata;
cs=fjgtjg.size();
for (int cs0=0;cs0<cs;cs0++){
if(!cgdata.isEmpty()){
xdata=cgdata;
cgdata={};
}
QVector<double> ydata=fjgtjg[0];
for(int i=0;i<xdata.size();i+=1){
double fjjg=0;
double fjgt=0;
for(int i0=0;i0<lp2_a.size();i0+=2){
int i1=i+i0/2-2;
if(i1<0){
fjjg+=xdata[i1+xdata.size()]*lp1_a[i0];
fjgt+=ydata[i1+ydata.size()]*hp1_a[i0];
}
else if(i1>xdata.size()-1){
fjjg+=xdata[i1-xdata.size()]*lp1_a[i0];
fjgt+=ydata[i1-ydata.size()]*hp1_a[i0];
}
else{
fjjg+=xdata[i1]*lp1_a[i0];
fjgt+=ydata[i1]*hp1_a[i0];
}
}
cgdata.append(fjjg+fjgt);
fjjg=0;
fjgt=0;
for(int i0=1;i0<lp2_a.size();i0+=2){
int i1=i+(i0+1)/2-2;
if(i1<0){
fjjg+=xdata[i1+xdata.size()]*lp1_a[i0];
fjgt+=ydata[i1+ydata.size()]*hp1_a[i0];
}
else if(i1>xdata.size()-1){
fjjg+=xdata[i1-xdata.size()]*lp1_a[i0];
fjgt+=ydata[i1-ydata.size()]*hp1_a[i0];
}
else{
fjjg+=xdata[i1]*lp1_a[i0];
fjgt+=ydata[i1]*hp1_a[i0];
}
}
cgdata.append(fjjg+fjgt);
}
fjgtjg.removeAt(0);
}
for(int i=1;i<sjgs;i++){
cgdata.removeAt(0);
cgdata.removeAt(cgdata.size()-1);
}
return cgdata;
}
QVector<double> hqdtfjxs(QString lx){
QVector<double> dtfjxs;
if(lx=="db1"){
dtfjxs={0.7071,0.7071};
}
else if(lx=="db2"){
dtfjxs= {0.48296291314469025, 0.83651630373746899, 0.22414386804185735,
-0.12940952255092145};
}
else if(lx=="db3"){
dtfjxs= {0.33267055295095688, 0.80689150931333875, 0.45987750211933132,
-0.13501102001039084, -0.085441273882241486, 0.035226291882100656 };
}
else if(lx=="db4"){
dtfjxs= {0.23037781330885523, 0.71484657055254153, 0.63088076792959036,
-0.027983769416983849, -0.18703481171888114, 0.030841381835986965,
0.032883011666982945, -0.010597401784997278 };
}
else if(lx=="db5"){
dtfjxs= {0.16010239797412501, 0.60382926979747287, 0.72430852843857441,
0.13842814590110342, -0.24229488706619015, -0.03224486958502952,
0.077571493840065148, -0.0062414902130117052, -0.012580751999015526,
0.0033357252850015492 };
}
else if(lx=="db6"){
dtfjxs= {0.11154074335008017,
0.49462389039838539,
0.75113390802157753,
0.3152503517092432,
-0.22626469396516913,
-0.12976686756709563,
0.097501605587079362,
0.027522865530016288,
-0.031582039318031156,
0.0005538422009938016,
0.0047772575110106514,
-0.0010773010849955799
};
}
else if(lx=="db7"){
dtfjxs= {0.077852054085062364,
0.39653931948230575,
0.72913209084655506,
0.4697822874053586,
-0.14390600392910627,
-0.22403618499416572,
0.071309219267050042,
0.080612609151065898,
-0.038029936935034633,
-0.01657454163101562,
0.012550998556013784,
0.00042957797300470274,
-0.0018016407039998328,
0.00035371380000103988
};
}
else if(lx=="db8"){
dtfjxs= {0.054415842243081609,
0.31287159091446592,
0.67563073629801285,
0.58535468365486909,
-0.015829105256023893,
-0.28401554296242809,
0.00047248457399797254,
0.12874742662018601,
-0.017369301002022108,
-0.044088253931064719,
0.013981027917015516,
0.0087460940470156547,
-0.0048703529930106603,
-0.00039174037299597711,
0.00067544940599855677,
-0.00011747678400228192
};
}
else if(lx=="db9"){
dtfjxs= {0.038077947363167282,
0.24383467463766728,
0.6048231236767786,
0.65728807803663891,
0.13319738582208895,
-0.29327378327258685,
-0.096840783220879037,
0.14854074933476008,
0.030725681478322865,
-0.067632829059523988,
0.00025094711499193845,
0.022361662123515244,
-0.004723204757894831,
-0.0042815036819047227,
0.0018476468829611268,
0.00023038576399541288,
-0.00025196318899817888,
3.9347319995026124e-05
};
}
else if(lx=="db10"){
dtfjxs= {0.026670057900950818,
0.18817680007762133,
0.52720118893091983,
0.68845903945259213,
0.28117234366042648,
-0.24984642432648865,
-0.19594627437659665,
0.12736934033574265,
0.093057364603806592,
-0.071394147165860775,
-0.029457536821945671,
0.033212674058933238,
0.0036065535669883944,
-0.010733175482979604,
0.0013953517469940798,
0.0019924052949908499,
-0.00068585669500468248,
-0.0001164668549943862,
9.3588670001089845e-05,
-1.3264203002354869e-05
};
}
else if(lx=="db11"){
dtfjxs= {0.018694297761470441,
0.14406702115061959,
0.44989976435603013,
0.68568677491617847,
0.41196436894789695,
-0.16227524502747828,
-0.27423084681792875,
0.066043588196690886,
0.14981201246638268,
-0.04647995511667613,
-0.066438785695020222,
0.031335090219045313,
0.020840904360180039,
-0.015364820906201324,
-0.0033408588730145018,
0.0049284176560587777,
-0.00030859285881515924,
-0.00089302325066623663,
0.00024915252355281426,
5.4439074699366381e-05,
-3.4634984186983789e-05,
4.4942742772363519e-06
};
}
else if(lx=="db12"){
dtfjxs= {0.013112257957229239,
0.10956627282118277,
0.37735513521420411,
0.65719872257929113,
0.51588647842780067,
-0.044763885653777619,
-0.31617845375277914,
-0.023779257256064865,
0.18247860592758275,
0.0053595696743599965,
-0.09643212009649671,
0.010849130255828966,
0.041546277495087637,
-0.01221864906974642,
-0.012840825198299882,
0.0067114990087955486,
0.0022486072409952287,
-0.0021795036186277044,
6.5451282125215034e-06,
0.00038865306282092672,
-8.8504109208203182e-05,
-2.4241545757030318e-05,
1.2776952219379579e-05,
-1.5290717580684923e-06
};
}
else if(lx=="db13"){
dtfjxs= {0.0092021335389622788,
0.082861243872901946,
0.31199632216043488,
0.61105585115878114,
0.58888957043121193,
0.086985726179645007,
-0.31497290771138414,
-0.12457673075080665,
0.17947607942935084,
0.072948933656788742,
-0.10580761818792761,
-0.026488406475345658,
0.056139477100276156,
0.0023799722540522269,
-0.023831420710327809,
0.0039239414487955773,
0.0072555894016171187,
-0.002761911234656831,
-0.0013156739118922766,
0.00093232613086724904,
4.9251525126285676e-05,
-0.00016512898855650571,
3.0678537579324358e-05,
1.0441930571407941e-05,
-4.7004164793608082e-06,
5.2200350984547998e-07
};
}
else if(lx=="db14"){
dtfjxs= {0.0064611534600864905,
0.062364758849384874,
0.25485026779256437,
0.55430561794077093,
0.63118784910471981,
0.21867068775886594,
-0.27168855227867705,
-0.21803352999321651,
0.13839521386479153,
0.13998901658445695,
-0.086748411568110598,
-0.071548955503983505,
0.05523712625925082,
0.026981408307947971,
-0.030185351540353976,
-0.0056150495303375755,
0.012789493266340071,
-0.00074621898926387534,
-0.003849638868019787,
0.001061691085606874,
0.00070802115423540481,
-0.00038683194731287514,
-4.1777245770370672e-05,
6.875504252695734e-05,
-1.0337209184568496e-05,
-4.3897049017804176e-06,
1.7249946753674012e-06,
-1.7871399683109222e-07
};
}
else if(lx=="db15"){
dtfjxs= {0.0045385373615773762,
0.046743394892750617,
0.20602386398692688,
0.49263177170797529,
0.64581314035721027,
0.33900253545462167,
-0.19320413960907623,
-0.28888259656686216,
0.065282952848765688,
0.19014671400708816,
-0.039666176555733602,
-0.11112093603713753,
0.033877143923563204,
0.054780550584559995,
-0.025767007328366939,
-0.020810050169636805,
0.015083918027862582,
0.0051010003604228726,
-0.0064877345603061454,
-0.00024175649075894543,
0.0019433239803823459,
-0.00037348235413726472,
-0.00035956524436229364,
0.00015589648992055726,
2.579269915531323e-05,
-2.8133296266037558e-05,
3.3629871817363823e-06,
1.8112704079399406e-06,
-6.3168823258794506e-07,
6.1333599133037138e-08
};
}
else if(lx=="bior1.1"){
dtfjxs= {0.70710678118654757,
0.70710678118654757
};
}
else if(lx=="bior1.3"){
dtfjxs= {0.0,
0.0,
0.70710678118654757,
0.70710678118654757,
0.0,
0.0
};
}
else if(lx=="bior1.5"){
dtfjxs= {0.0,
0.0,
0.0,
0.0,
0.70710678118654757,
0.70710678118654757,
0.0,
0.0,
0.0,
0.0
};
}
else if(lx=="bior2.2"){
dtfjxs= {0.0,
0.35355339059327379,
0.70710678118654757,
0.35355339059327379,
0.0,
0.0
};
}
else if(lx=="bior2.4"){
dtfjxs= {0.0,
0.0,
0.0,
0.35355339059327379,
0.70710678118654757,
0.35355339059327379,
0.0,
0.0,
0.0,
0.0
};
}
else if(lx=="bior2.6"){
dtfjxs= {0.0,
0.0,
0.0,
0.0,
0.0,
0.35355339059327379,
0.70710678118654757,
0.35355339059327379,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
};
}
else if(lx=="bior2.8"){
dtfjxs= {0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.35355339059327379,
0.70710678118654757,
0.35355339059327379,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
};
}
else if(lx=="bior3.1"){
dtfjxs= {0.17677669529663689,
0.53033008588991071,
0.53033008588991071,
0.17677669529663689
};
}
else if(lx=="bior3.3"){
dtfjxs= {0.0,
0.0,
0.17677669529663689,
0.53033008588991071,
0.53033008588991071,
0.17677669529663689,
0.0,
0.0
};
}
else if(lx=="bior3.5"){
dtfjxs= {0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.17677669529663689,
0.53033008588991071,
0.53033008588991071,
0.17677669529663689,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
};
}
else if(lx=="bior3.7"){
dtfjxs= {0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.17677669529663689,
0.53033008588991071,
0.53033008588991071,
0.17677669529663689,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
};
}
else if(lx=="bior3.9"){
dtfjxs= {0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.17677669529663689,
0.53033008588991071,
0.53033008588991071,
0.17677669529663689,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
};
}
else if(lx=="bior4.4"){
dtfjxs= {0.0,
-0.064538882628697058,
-0.040689417609164058,
0.41809227322161724,
0.7884856164055829,
0.41809227322161724,
-0.040689417609164058,
-0.064538882628697058,
0.0,
0.0
};
}
else if(lx=="bior5.5"){
dtfjxs= {0.013456709459118716,
-0.0026949668801115071,
-0.13670658466432914,
-0.093504697400938863,
0.47680326579848425,
0.89950610974864842,
0.47680326579848425,
-0.093504697400938863,
-0.13670658466432914,
-0.0026949668801115071,
0.013456709459118716,
0.0
};
}
else if(lx=="bior6.8"){
dtfjxs= {0.0,
0.0,
0.0,
0.014426282505624435,
0.014467504896790148,
-0.078722001062628819,
-0.040367979030339923,
0.41784910915027457,
0.75890772945365415,
0.41784910915027457,
-0.040367979030339923,
-0.078722001062628819,
0.014467504896790148,
0.014426282505624435,
0.0,
0.0,
0.0,
0.0
};
}
else if(lx=="coif1"){
dtfjxs= {-0.072732619512853897,
0.33789766245780922,
0.85257202021225542,
0.38486484686420286,
-0.072732619512853897,
-0.01565572813546454
};
}
else if(lx=="coif2"){
dtfjxs= {0.016387336463522112,
-0.041464936781759151,
-0.067372554721963018,
0.38611006682116222,
0.81272363544554227,
0.41700518442169254,
-0.076488599078306393,
-0.059434418646456898,
0.023680171946334084,
0.0056114348193944995,
-0.0018232088707029932,
-0.00072054944536451221
};
}
else if(lx=="coif3"){
dtfjxs= {-0.0037935128644910141,
0.0077825964273254182,
0.023452696141836267,
-0.0657719112818555,
-0.061123390002672869,
0.4051769024096169,
0.79377722262562056,
0.42848347637761874,
-0.071799821619312018,
-0.082301927106885983,
0.034555027573061628,
0.015880544863615904,
-0.0090079761366615805,
-0.0025745176887502236,
0.0011175187708906016,
0.00046621696011288631,
-7.0983303138141252e-05,
-3.4599772836212559e-05
};
}
else if(lx=="coif4"){
dtfjxs= {0.00089231366858231456,
-0.0016294920126017326,
-0.0073461663276420935,
0.016068943964776348,
0.026682300156053072,
-0.081266699680878754,
-0.056077313316754807,
0.41530840703043026,
0.78223893092049901,
0.4343860564914685,
-0.066627474263425038,
-0.096220442033987982,
0.039334427123337491,
0.025082261844864097,
-0.015211731527946259,
-0.0056582866866107199,
0.0037514361572784571,
0.0012665619292989445,
-0.00058902075624433831,
-0.00025997455248771324,
6.2339034461007128e-05,
3.1229875865345646e-05,
-3.2596802368833675e-06,
-1.7849850030882614e-06
};
}
else if(lx=="coif5"){
dtfjxs= {-0.00021208083980379827,
0.00035858968789573785,
0.0021782363581090178,
-0.004159358781386048,
-0.010131117519849788,
0.023408156785839195,
0.02816802897093635,
-0.091920010559696244,
-0.052043163176243773,
0.42156620669085149,
0.77428960365295618,
0.43799162617183712,
-0.062035963962903569,
-0.10557420870333893,
0.041289208750181702,
0.032683574267111833,
-0.019761778942572639,
-0.0091642311624818458,
0.0067641854480530832,
0.0024333732126576722,
-0.0016628637020130838,
-0.00063813134304511142,
0.00030225958181306315,
0.00014054114970203437,
-4.1340432272512511e-05,
-2.1315026809955787e-05,
3.7346551751414047e-06,
2.0637618513646814e-06,
-1.6744288576823017e-07,
-9.517657273819165e-08
};
}
else if(lx=="sym2"){
dtfjxs= {0.48296291314469025,
0.83651630373746899,
0.22414386804185735,
-0.12940952255092145
};
}
else if(lx=="sym3"){
dtfjxs= {0.33267055295095688,
0.80689150931333875,
0.45987750211933132,
-0.13501102001039084,
-0.085441273882241486,
0.035226291882100656
};
}
else if(lx=="sym4"){
dtfjxs= {0.032223100604042702,
-0.012603967262037833,
-0.099219543576847216,
0.29785779560527736,
0.80373875180591614,
0.49761866763201545,
-0.02963552764599851,
-0.075765714789273325
};
}
else if(lx=="sym5"){
dtfjxs= {0.019538882735286728,
-0.021101834024758855,
-0.17532808990845047,
0.016602105764522319,
0.63397896345821192,
0.72340769040242059,
0.1993975339773936,
-0.039134249302383094,
0.029519490925774643,
0.027333068345077982
};
}
else if(lx=="sym6"){
dtfjxs= {-0.007800708325034148,
0.0017677118642428036,
0.044724901770665779,
-0.021060292512300564,
-0.072637522786462516,
0.3379294217276218,
0.787641141030194,
0.49105594192674662,
-0.048311742585632998,
-0.11799011114819057,
0.0034907120842174702,
0.015404109327027373
};
}
else if(lx=="sym7"){
dtfjxs= {0.010268176708511255,
0.0040102448715336634,
-0.10780823770381774,
-0.14004724044296152,
0.28862963175151463,
0.76776431700316405,
0.5361019170917628,
0.017441255086855827,
-0.049552834937127255,
0.067892693501372697,
0.03051551316596357,
-0.01263630340325193,
-0.0010473848886829163,
0.0026818145682578781
};
}
else if(lx=="sym8"){
dtfjxs= {0.0018899503327594609,
-0.0003029205147213668,
-0.014952258337048231,
0.0038087520138906151,
0.049137179673607506,
-0.027219029917056003,
-0.051945838107709037,
0.3644418948353314,
0.77718575170052351,
0.48135965125837221,
-0.061273359067658524,
-0.14329423835080971,
0.0076074873249176054,
0.031695087811492981,
-0.00054213233179114812,
-0.0033824159510061256
};
}
else if(lx=="sym9"){
dtfjxs={0.0010694900329086053,
-0.00047315449868008311,
-0.010264064027633142,
0.0088592674934004842,
0.06207778930288603,
-0.018233770779395985,
-0.19155083129728512,
0.035272488035271894,
0.61733844914093583,
0.717897082764412,
0.238760914607303,
-0.054568958430834071,
0.00058346274612580684,
0.03022487885827568,
-0.01152821020767923,
-0.013271967781817119,
0.00061978088898558676,
0.0014009155259146807
};
}
else if(lx=="sym10"){
dtfjxs={-0.00045932942100465878,
5.7036083618494284e-05,
0.0045931735853118284,
-0.00080435893201654491,
-0.02035493981231129,
0.0057649120335819086,
0.049994972077376687,
-0.0319900568824278,
-0.035536740473817552,
0.38382676106708546,
0.7695100370211071,
0.47169066693843925,
-0.070880535783243853,
-0.15949427888491757,
0.011609893903711381,
0.045927239231092203,
-0.0014653825813050513,
-0.0086412992770224222,
9.5632670722894754e-05,
0.00077015980911449011
};
}
return dtfjxs;
}
QVector<double> hqgtfjxs(QString lx){
QVector<double> gtfjxs;
if(lx=="db1"){
gtfjxs={0.7071,-0.7071};
}
else if(lx=="db2"){
gtfjxs={-0.12940952255092145, -0.22414386804185735, 0.83651630373746899,
-0.48296291314469025};
}
else if(lx=="db3"){
gtfjxs= {0.035226291882100656, 0.085441273882241486, -0.13501102001039084,
-0.45987750211933132, 0.80689150931333875, -0.33267055295095688 };
}
else if(lx=="db4"){
gtfjxs= {-0.010597401784997278, -0.032883011666982945, 0.030841381835986965,
0.18703481171888114, -0.027983769416983849, -0.63088076792959036,
0.71484657055254153, -0.23037781330885523 };
}
else if(lx=="db5"){
gtfjxs= {0.0033357252850015492, 0.012580751999015526, -0.0062414902130117052,
-0.077571493840065148, -0.03224486958502952, 0.24229488706619015,
0.13842814590110342, -0.72430852843857441, 0.60382926979747287,
-0.16010239797412501 };
}
else if(lx=="db6"){
gtfjxs= {-0.0010773010849955799,
-0.0047772575110106514,
0.0005538422009938016,
0.031582039318031156,
0.027522865530016288,
-0.097501605587079362,
-0.12976686756709563,
0.22626469396516913,
0.3152503517092432,
-0.75113390802157753,
0.49462389039838539,
-0.11154074335008017
};
}
else if(lx=="db7"){
gtfjxs= {0.00035371380000103988,
0.0018016407039998328,
0.00042957797300470274,
-0.01255099855601378,
-0.01657454163101562,
0.038029936935034633,
0.080612609151065898,
-0.071309219267050042,
-0.22403618499416572,
0.14390600392910627,
0.4697822874053586,
-0.72913209084655506,
0.39653931948230575,
-0.077852054085062364
};
}
else if(lx=="db8"){
gtfjxs= {-0.00011747678400228192,
-0.00067544940599855677,
-0.00039174037299597711,
0.0048703529930106603,
0.0087460940470156547,
-0.013981027917015516,
-0.044088253931064719,
0.017369301002022108,
0.12874742662018601,
-0.00047248457399797254,
-0.28401554296242809,
0.015829105256023893,
0.58535468365486909,
-0.67563073629801285,
0.31287159091446592,
-0.054415842243081609
};
}
else if(lx=="db9"){
gtfjxs= {3.9347319995026124e-05,
0.00025196318899817888,
0.00023038576399541288,
-0.0018476468829611268,
-0.0042815036819047227,
0.004723204757894831,
0.022361662123515244,
-0.00025094711499193845,
-0.067632829059523988,
-0.030725681478322865,
0.14854074933476008,
0.096840783220879037,
-0.29327378327258685,
-0.13319738582208895,
0.65728807803663891,
-0.6048231236767786,
0.24383467463766728,
-0.038077947363167282
};
}
else if(lx=="db10"){
gtfjxs= {-1.3264203002354869e-05,
-9.3588670001089845e-05,
-0.0001164668549943862,
0.00068585669500468248,
0.0019924052949908499,
-0.0013953517469940798,
-0.010733175482979604,
-0.0036065535669883944,
0.033212674058933238,
0.029457536821945671,
-0.071394147165860775,
-0.093057364603806592,
0.12736934033574265,
0.19594627437659665,
-0.24984642432648865,
-0.28117234366042648,
0.68845903945259213,
-0.52720118893091983,
0.18817680007762133,
-0.026670057900950818
};
}
else if(lx=="db11"){
gtfjxs= {4.4942742772363519e-06,
3.4634984186983789e-05,
5.4439074699366381e-05,
-0.00024915252355281426,
-0.00089302325066623663,
0.00030859285881515924,
0.0049284176560587777,
0.0033408588730145018,
-0.015364820906201324,
-0.020840904360180039,
0.031335090219045313,
0.066438785695020222,
-0.04647995511667613,
-0.14981201246638268,
0.066043588196690886,
0.27423084681792875,
-0.16227524502747828,
-0.41196436894789695,
0.68568677491617847,
-0.44989976435603013,
0.14406702115061959,
-0.018694297761470441
};
}
else if(lx=="db12"){
gtfjxs= {-1.5290717580684923e-06,
-1.2776952219379579e-05,
-2.4241545757030318e-05,
8.8504109208203182e-05,
0.00038865306282092672,
-6.5451282125215034e-06,
-0.0021795036186277044,
-0.0022486072409952287,
0.0067114990087955486,
0.012840825198299882,
-0.01221864906974642,
-0.041546277495087637,
0.010849130255828966,
0.09643212009649671,
0.0053595696743599965,
-0.18247860592758275,
-0.023779257256064865,
0.31617845375277914,
-0.044763885653777619,
-0.51588647842780067,
0.65719872257929113,
-0.37735513521420411,
0.10956627282118277,
-0.013112257957229239
};
}
else if(lx=="db13"){
gtfjxs= {5.2200350984547998e-07,
4.7004164793608082e-06,
1.0441930571407941e-05,
-3.0678537579324358e-05,
-0.00016512898855650571,
-4.9251525126285676e-05,
0.00093232613086724904,
0.0013156739118922766,
-0.002761911234656831,
-0.0072555894016171187,
0.0039239414487955773,
0.023831420710327809,
0.0023799722540522269,
-0.056139477100276156,
-0.026488406475345658,
0.10580761818792761,
0.072948933656788742,
-0.17947607942935084,
-0.12457673075080665,
0.31497290771138414,
0.086985726179645007,
-0.58888957043121193,
0.61105585115878114,
-0.31199632216043488,
0.082861243872901946,
-0.0092021335389622788
};
}
else if(lx=="db14"){
gtfjxs= {-1.7871399683109222e-07,
-1.7249946753674012e-06,
-4.3897049017804176e-06,
1.0337209184568496e-05,
6.875504252695734e-05,
4.1777245770370672e-05,
-0.00038683194731287514,
-0.00070802115423540481,
0.001061691085606874,
0.003849638868019787,
-0.00074621898926387534,
-0.012789493266340071,
-0.0056150495303375755,
0.030185351540353976,
0.026981408307947971,
-0.05523712625925082,
-0.071548955503983505,
0.086748411568110598,
0.13998901658445695,
-0.13839521386479153,
-0.21803352999321651,
0.27168855227867705,
0.21867068775886594,
-0.63118784910471981,
0.55430561794077093,
-0.25485026779256437,
0.062364758849384874,
-0.0064611534600864905
};
}
else if(lx=="db15"){
gtfjxs= {6.1333599133037138e-08,
6.3168823258794506e-07,
1.8112704079399406e-06,
-3.3629871817363823e-06,
-2.8133296266037558e-05,
-2.579269915531323e-05,
0.00015589648992055726,
0.00035956524436229364,
-0.00037348235413726472,
-0.0019433239803823459,
-0.00024175649075894543,
0.0064877345603061454,
0.0051010003604228726,
-0.015083918027862582,
-0.020810050169636805,
0.025767007328366939,
0.054780550584559995,
-0.033877143923563204,
-0.11112093603713753,
0.039666176555733602,
0.19014671400708816,
-0.065282952848765688,
-0.28888259656686216,
0.19320413960907623,
0.33900253545462167,
-0.64581314035721027,
0.49263177170797529,
-0.20602386398692688,
0.046743394892750617,
-0.0045385373615773762
};
}
else if(lx=="bior1.1"){
gtfjxs= {0.70710678118654757,
-0.70710678118654757
};
}
else if(lx=="bior1.3"){
gtfjxs= {-0.088388347648318447,
-0.088388347648318447,
0.70710678118654757,
-0.70710678118654757,
0.088388347648318447,
0.088388347648318447
};
}
else if(lx=="bior1.5"){
gtfjxs= {0.01657281518405971,
0.01657281518405971,
-0.12153397801643787,
-0.12153397801643787,
0.70710678118654757,
-0.70710678118654757,
0.12153397801643787,
0.12153397801643787,
-0.01657281518405971,
-0.01657281518405971
};
}
else if(lx=="bior2.2"){
gtfjxs= {0.0,
0.17677669529663689,
0.35355339059327379,
-1.0606601717798214,
0.35355339059327379,
0.17677669529663689
};
}
else if(lx=="bior2.4"){
gtfjxs= {0.0,
-0.033145630368119419,
-0.066291260736238838,
0.17677669529663689,
0.4198446513295126,
-0.99436891104358249,
0.4198446513295126,
0.17677669529663689,
-0.066291260736238838,
-0.033145630368119419
};
}
else if(lx=="bior2.6"){
gtfjxs= {0.0,
0.0069053396600248784,
0.013810679320049757,
-0.046956309688169176,
-0.10772329869638811,
0.16987135563661201,
0.44746600996961211,
-0.96674755240348298,
0.44746600996961211,
0.16987135563661201,
-0.10772329869638811,
-0.046956309688169176,
0.013810679320049757,
0.0069053396600248784
};
}
else if(lx=="bior2.8"){
gtfjxs= {0.0,
-0.0015105430506304422,
-0.0030210861012608843,
0.012947511862546647,
0.028916109826354178,
-0.052998481890690945,
-0.13491307360773608,
0.16382918343409025,
0.46257144047591658,
-0.95164212189717856,
0.46257144047591658,
0.16382918343409025,
-0.13491307360773608,
-0.052998481890690945,
0.028916109826354178,
0.012947511862546647,
-0.0030210861012608843,
-0.0015105430506304422
};
}
else if(lx=="bior3.1"){
gtfjxs= {-0.35355339059327379,
-1.0606601717798214,
1.0606601717798214,
0.35355339059327379
};
}
else if(lx=="bior3.3"){
gtfjxs= {0.066291260736238838,
0.19887378220871652,
-0.15467960838455727,
-0.99436891104358249,
0.99436891104358249,
0.15467960838455727,
-0.19887378220871652,
-0.066291260736238838
};
}
else if(lx=="bior3.5"){
gtfjxs= {-0.013810679320049757,
-0.041432037960149271,
0.052480581416189075,
0.26792717880896527,
-0.071815532464258744,
-0.96674755240348298,
0.96674755240348298,
0.071815532464258744,
-0.26792717880896527,
-0.052480581416189075,
0.041432037960149271,
0.013810679320049757
};
}
else if(lx=="bior3.7"){
gtfjxs= {0.0030210861012608843,
0.0090632583037826529,
-0.016831765421310641,
-0.074663985074019001,
0.031332978707362888,
0.301159125922835,
-0.026499240945345472,
-0.95164212189717856,
0.95164212189717856,
0.026499240945345472,
-0.301159125922835,
-0.031332978707362888,
0.074663985074019001,
0.016831765421310641,
-0.0090632583037826529,
-0.0030210861012608843
};
}
else if(lx=="bior3.9"){
gtfjxs= {-0.00067974437278369901,
-0.0020392331183510968,
0.0050603192196119811,
0.020618912641105536,
-0.014112787930175846,
-0.09913478249423216,
0.012300136269419315,
0.32019196836077857,
0.0020500227115698858,
-0.94212570067820678,
0.94212570067820678,
-0.0020500227115698858,
-0.32019196836077857,
-0.012300136269419315,
0.09913478249423216,
0.014112787930175846,
-0.020618912641105536,
-0.0050603192196119811,
0.0020392331183510968,
0.00067974437278369901
};
}
else if(lx=="bior4.4"){
gtfjxs= {0.0,
-0.03782845550726404,
-0.023849465019556843,
0.11062440441843718,
0.37740285561283066,
-0.85269867900889385,
0.37740285561283066,
0.11062440441843718,
-0.023849465019556843,
-0.03782845550726404
};
}
else if(lx=="bior5.5"){
gtfjxs= {0.0,
0.0,
0.03968708834740544,
-0.0079481086372403219,
-0.054463788468236907,
-0.34560528195603346,
0.73666018142821055,
-0.34560528195603346,
-0.054463788468236907,
-0.0079481086372403219,
0.03968708834740544,
0.0
};
}
else if(lx=="bior6.8"){
gtfjxs= {0.0,
-0.0019088317364812906,
-0.0019142861290887667,
0.016990639867602342,
0.01193456527972926,
-0.04973290349094079,
-0.077263173167204144,
0.09405920349573646,
0.42079628460982682,
-0.82592299745840225,
0.42079628460982682,
0.09405920349573646,
-0.077263173167204144,
-0.04973290349094079,
0.01193456527972926,
0.016990639867602342,
-0.0019142861290887667,
-0.0019088317364812906
};
}
else if(lx=="coif1"){
gtfjxs= {-0.01565572813546454,
0.072732619512853897,
0.38486484686420286,
-0.85257202021225542,
0.33789766245780922,
0.072732619512853897
};
}
else if(lx=="coif2"){
gtfjxs= {-0.00072054944536451221,
0.0018232088707029932,
0.0056114348193944995,
-0.023680171946334084,
-0.059434418646456898,
0.076488599078306393,
0.41700518442169254,
-0.81272363544554227,
0.38611006682116222,
0.067372554721963018,
-0.041464936781759151,
-0.016387336463522112
};
}
else if(lx=="coif3"){
gtfjxs= {-3.4599772836212559e-05,
7.0983303138141252e-05,
0.00046621696011288631,
-0.0011175187708906016,
-0.0025745176887502236,
0.0090079761366615805,
0.015880544863615904,
-0.034555027573061628,
-0.082301927106885983,
0.071799821619312018,
0.42848347637761874,
-0.79377722262562056,
0.4051769024096169,
0.061123390002672869,
-0.0657719112818555,
-0.023452696141836267,
0.0077825964273254182,
0.0037935128644910141
};
}
else if(lx=="coif4"){
gtfjxs= {-1.7849850030882614e-06,
3.2596802368833675e-06,
3.1229875865345646e-05,
-6.2339034461007128e-05,
-0.00025997455248771324,
0.00058902075624433831,
0.0012665619292989445,
-0.0037514361572784571,
-0.0056582866866107199,
0.015211731527946259,
0.025082261844864097,
-0.039334427123337491,
-0.096220442033987982,
0.066627474263425038,
0.4343860564914685,
-0.78223893092049901,
0.41530840703043026,
0.056077313316754807,
-0.081266699680878754,
-0.026682300156053072,
0.016068943964776348,
0.0073461663276420935,
-0.0016294920126017326,
-0.00089231366858231456
};
}
else if(lx=="coif5"){
gtfjxs= {-9.517657273819165e-08,
1.6744288576823017e-07,
2.0637618513646814e-06,
-3.7346551751414047e-06,
-2.1315026809955787e-05,
4.1340432272512511e-05,
0.00014054114970203437,
-0.00030225958181306315,
-0.00063813134304511142,
0.0016628637020130838,
0.0024333732126576722,
-0.0067641854480530832,
-0.0091642311624818458,
0.019761778942572639,
0.032683574267111833,
-0.041289208750181702,
-0.10557420870333893,
0.062035963962903569,
0.43799162617183712,
-0.77428960365295618,
0.42156620669085149,
0.052043163176243773,
-0.091920010559696244,
-0.02816802897093635,
0.023408156785839195,
0.010131117519849788,
-0.004159358781386048,
-0.0021782363581090178,
0.00035858968789573785,
0.00021208083980379827
};
}
else if(lx=="sym2"){
gtfjxs= {-0.12940952255092145,
-0.22414386804185735,
0.83651630373746899,
-0.48296291314469025
};
}
else if(lx=="sym3"){
gtfjxs= {0.035226291882100656,
0.085441273882241486,
-0.13501102001039084,
-0.45987750211933132,
0.80689150931333875,
-0.33267055295095688
};
}
else if(lx=="sym4"){
gtfjxs= {-0.075765714789273325,
0.02963552764599851,
0.49761866763201545,
-0.80373875180591614,
0.29785779560527736,
0.099219543576847216,
-0.012603967262037833,
-0.032223100604042702
};
}
else if(lx=="sym5"){
gtfjxs= {0.027333068345077982,
-0.029519490925774643,
-0.039134249302383094,
-0.1993975339773936,
0.72340769040242059,
-0.63397896345821192,
0.016602105764522319,
0.17532808990845047,
-0.021101834024758855,
-0.019538882735286728
};
}
else if(lx=="sym6"){
gtfjxs= {0.015404109327027373,
-0.0034907120842174702,
-0.11799011114819057,
0.048311742585632998,
0.49105594192674662,
-0.787641141030194,
0.3379294217276218,
0.072637522786462516,
-0.021060292512300564,
-0.044724901770665779,
0.0017677118642428036,
0.007800708325034148
};
}
else if(lx=="sym7"){
gtfjxs= {0.0026818145682578781,
0.0010473848886829163,
-0.01263630340325193,
-0.03051551316596357,
0.067892693501372697,
0.049552834937127255,
0.017441255086855827,
-0.5361019170917628,
0.76776431700316405,
-0.28862963175151463,
-0.14004724044296152,
0.10780823770381774,
0.0040102448715336634,
-0.010268176708511255
};
}
else if(lx=="sym8"){
gtfjxs= {-0.0033824159510061256,
0.00054213233179114812,
0.031695087811492981,
-0.0076074873249176054,
-0.14329423835080971,
0.061273359067658524,
0.48135965125837221,
-0.77718575170052351,
0.3644418948353314,
0.051945838107709037,
-0.027219029917056003,
-0.049137179673607506,
0.0038087520138906151,
0.014952258337048231,
-0.0003029205147213668,
-0.0018899503327594609
};
}
else if(lx=="sym9"){
gtfjxs= {0.0014009155259146807,
-0.00061978088898558676,
-0.013271967781817119,
0.01152821020767923,
0.03022487885827568,
-0.00058346274612580684,
-0.054568958430834071,
-0.238760914607303,
0.717897082764412,
-0.61733844914093583,
0.035272488035271894,
0.19155083129728512,
-0.018233770779395985,
-0.06207778930288603,
0.0088592674934004842,
0.010264064027633142,
-0.00047315449868008311,
-0.0010694900329086053
};
}
else if(lx=="sym10"){
gtfjxs= {0.00077015980911449011,
-9.5632670722894754e-05,
-0.0086412992770224222,
0.0014653825813050513,
0.045927239231092203,
-0.011609893903711381,
-0.15949427888491757,
0.070880535783243853,
0.47169066693843925,
-0.7695100370211071,
0.38382676106708546,
0.035536740473817552,
-0.0319900568824278,
-0.049994972077376687,
0.0057649120335819086,
0.02035493981231129,
-0.00080435893201654491,
-0.0045931735853118284,
5.7036083618494284e-05,
0.00045932942100465878
};
}
return gtfjxs;
}
QVector<double> hqcgdtxs(QString lx){
QVector<double> gtfjxs;
if(lx=="db1"){
gtfjxs={0.7071,0.7071};
}
else if(lx=="db2"){
gtfjxs= {-0.12940952255092145, 0.22414386804185735, 0.83651630373746899,
0.48296291314469025};
}
else if(lx=="db3"){
gtfjxs= {0.035226291882100656, -0.085441273882241486, -0.13501102001039084,
0.45987750211933132, 0.80689150931333875, 0.33267055295095688};
}
else if(lx=="db4"){
gtfjxs= {-0.010597401784997278, 0.032883011666982945, 0.030841381835986965,
-0.18703481171888114, -0.027983769416983849, 0.63088076792959036,
0.71484657055254153, 0.23037781330885523 };
}
else if(lx=="db5"){
gtfjxs= {0.0033357252850015492, -0.012580751999015526, -0.0062414902130117052,
0.077571493840065148, -0.03224486958502952, -0.24229488706619015,
0.13842814590110342, 0.72430852843857441, 0.60382926979747287,
0.16010239797412501 };
}
else if(lx=="db6"){
gtfjxs= {-0.0010773010849955799,
0.0047772575110106514,
0.0005538422009938016,
-0.031582039318031156,
0.027522865530016288,
0.097501605587079362,
-0.12976686756709563,
-0.22626469396516913,
0.3152503517092432,
0.75113390802157753,
0.49462389039838539,
0.11154074335008017
};
}
else if(lx=="db7"){
gtfjxs= {0.00035371380000103988,
-0.0018016407039998328,
0.00042957797300470274,
0.012550998556013784,
-0.01657454163101562,
-0.038029936935034633,
0.080612609151065898,
0.071309219267050042,
-0.22403618499416572,
-0.14390600392910627,
0.4697822874053586,
0.72913209084655506,
0.39653931948230575,
0.077852054085062364
};
}
else if(lx=="db8"){
gtfjxs= {-0.00011747678400228192,
0.00067544940599855677,
-0.00039174037299597711,
-0.0048703529930106603,
0.0087460940470156547,
0.013981027917015516,
-0.044088253931064719,
-0.017369301002022108,
0.12874742662018601,
0.00047248457399797254,
-0.28401554296242809,
-0.015829105256023893,
0.58535468365486909,
0.67563073629801285,
0.31287159091446592,
0.054415842243081609
};
}
else if(lx=="db9"){
gtfjxs= {3.9347319995026124e-05,
-0.00025196318899817888,
0.00023038576399541288,
0.0018476468829611268,
-0.0042815036819047227,
-0.004723204757894831,
0.022361662123515244,
0.00025094711499193845,
-0.067632829059523988,
0.030725681478322865,
0.14854074933476008,
-0.096840783220879037,
-0.29327378327258685,
0.13319738582208895,
0.65728807803663891,
0.6048231236767786,
0.24383467463766728,
0.038077947363167282
};
}
else if(lx=="db10"){
gtfjxs= {-1.3264203002354869e-05,
9.3588670001089845e-05,
-0.0001164668549943862,
-0.00068585669500468248,
0.0019924052949908499,
0.0013953517469940798,
-0.010733175482979604,
0.0036065535669883944,
0.033212674058933238,
-0.029457536821945671,
-0.071394147165860775,
0.093057364603806592,
0.12736934033574265,
-0.19594627437659665,
-0.24984642432648865,
0.28117234366042648,
0.68845903945259213,
0.52720118893091983,
0.18817680007762133,
0.026670057900950818
};
}
else if(lx=="db11"){
gtfjxs= {4.4942742772363519e-06,
-3.4634984186983789e-05,
5.4439074699366381e-05,
0.00024915252355281426,
-0.00089302325066623663,
-0.00030859285881515924,
0.0049284176560587777,
-0.0033408588730145018,
-0.015364820906201324,
0.020840904360180039,
0.031335090219045313,
-0.066438785695020222,
-0.04647995511667613,
0.14981201246638268,
0.066043588196690886,
-0.27423084681792875,
-0.16227524502747828,
0.41196436894789695,
0.68568677491617847,
0.44989976435603013,
0.14406702115061959,
0.018694297761470441
};
}
else if(lx=="db12"){
gtfjxs= {-1.5290717580684923e-06,
1.2776952219379579e-05,
-2.4241545757030318e-05,
-8.8504109208203182e-05,
0.00038865306282092672,
6.5451282125215034e-06,
-0.0021795036186277044,
0.0022486072409952287,
0.0067114990087955486,
-0.012840825198299882,
-0.01221864906974642,
0.041546277495087637,
0.010849130255828966,
-0.09643212009649671,
0.0053595696743599965,
0.18247860592758275,
-0.023779257256064865,
-0.31617845375277914,
-0.044763885653777619,
0.51588647842780067,
0.65719872257929113,
0.37735513521420411,
0.10956627282118277,
0.013112257957229239
};
}
else if(lx=="db13"){
gtfjxs= {5.2200350984547998e-07,
-4.7004164793608082e-06,
1.0441930571407941e-05,
3.0678537579324358e-05,
-0.00016512898855650571,
4.9251525126285676e-05,
0.00093232613086724904,
-0.0013156739118922766,
-0.002761911234656831,
0.0072555894016171187,
0.0039239414487955773,
-0.023831420710327809,
0.0023799722540522269,
0.056139477100276156,
-0.026488406475345658,
-0.10580761818792761,
0.072948933656788742,
0.17947607942935084,
-0.12457673075080665,
-0.31497290771138414,
0.086985726179645007,
0.58888957043121193,
0.61105585115878114,
0.31199632216043488,
0.082861243872901946,
0.0092021335389622788
};
}
else if(lx=="db14"){
gtfjxs= {-1.7871399683109222e-07,
1.7249946753674012e-06,
-4.3897049017804176e-06,
-1.0337209184568496e-05,
6.875504252695734e-05,
-4.1777245770370672e-05,
-0.00038683194731287514,
0.00070802115423540481,
0.001061691085606874,
-0.003849638868019787,
-0.00074621898926387534,
0.012789493266340071,
-0.0056150495303375755,
-0.030185351540353976,
0.026981408307947971,
0.05523712625925082,
-0.071548955503983505,
-0.086748411568110598,
0.13998901658445695,
0.13839521386479153,
-0.21803352999321651,
-0.27168855227867705,
0.21867068775886594,
0.63118784910471981,
0.55430561794077093,
0.25485026779256437,
0.062364758849384874,
0.0064611534600864905
};
}
else if(lx=="db15"){
gtfjxs= {6.1333599133037138e-08,
-6.3168823258794506e-07,
1.8112704079399406e-06,
3.3629871817363823e-06,
-2.8133296266037558e-05,
2.579269915531323e-05,
0.00015589648992055726,
-0.00035956524436229364,
-0.00037348235413726472,
0.0019433239803823459,
-0.00024175649075894543,
-0.0064877345603061454,
0.0051010003604228726,
0.015083918027862582,
-0.020810050169636805,
-0.025767007328366939,
0.054780550584559995,
0.033877143923563204,
-0.11112093603713753,
-0.039666176555733602,
0.19014671400708816,
0.065282952848765688,
-0.28888259656686216,
-0.19320413960907623,
0.33900253545462167,
0.64581314035721027,
0.49263177170797529,
0.20602386398692688,
0.046743394892750617,
0.0045385373615773762
};
}
else if(lx=="bior1.1"){
gtfjxs= {0.70710678118654757,
0.70710678118654757
};
}
else if(lx=="bior1.3"){
gtfjxs= {-0.088388347648318447,
0.088388347648318447,
0.70710678118654757,
0.70710678118654757,
0.088388347648318447,
-0.088388347648318447,
};
}
else if(lx=="bior1.5"){
gtfjxs= {0.01657281518405971,
-0.01657281518405971,
-0.12153397801643787,
0.12153397801643787,
0.70710678118654757,
0.70710678118654757,
0.12153397801643787,
-0.12153397801643787,
-0.01657281518405971,
0.01657281518405971
};
}
else if(lx=="bior2.2"){
gtfjxs= {0.0,
-0.17677669529663689,
0.35355339059327379,
1.0606601717798214,
0.35355339059327379,
-0.17677669529663689
};
}
else if(lx=="bior2.4"){
gtfjxs= {0.0,
0.033145630368119419,
-0.066291260736238838,
-0.17677669529663689,
0.4198446513295126,
0.99436891104358249,
0.4198446513295126,
-0.17677669529663689,
-0.066291260736238838,
0.033145630368119419
};
}
else if(lx=="bior2.6"){
gtfjxs= {0.0,
-0.0069053396600248784,
0.013810679320049757,
0.046956309688169176,
-0.10772329869638811,
-0.16987135563661201,
0.44746600996961211,
0.96674755240348298,
0.44746600996961211,
-0.16987135563661201,
-0.10772329869638811,
0.046956309688169176,
0.013810679320049757,
-0.0069053396600248784
};
}
else if(lx=="bior2.8"){
gtfjxs= {0.0,
0.0015105430506304422,
-0.0030210861012608843,
-0.012947511862546647,
0.028916109826354178,
0.052998481890690945,
-0.13491307360773608,
-0.16382918343409025,
0.46257144047591658,
0.95164212189717856,
0.46257144047591658,
-0.16382918343409025,
-0.13491307360773608,
0.052998481890690945,
0.028916109826354178,
-0.012947511862546647,
-0.0030210861012608843,
0.0015105430506304422
};
}
else if(lx=="bior3.1"){
gtfjxs= {-0.35355339059327379,
1.0606601717798214,
1.0606601717798214,
-0.35355339059327379
};
}
else if(lx=="bior3.3"){
gtfjxs= {0.066291260736238838,
-0.19887378220871652,
-0.15467960838455727,
0.99436891104358249,
0.99436891104358249,
-0.15467960838455727,
-0.19887378220871652,
0.066291260736238838
};
}
else if(lx=="bior3.5"){
gtfjxs= {-0.013810679320049757,
0.041432037960149271,
0.052480581416189075,
-0.26792717880896527,
-0.071815532464258744,
0.96674755240348298,
0.96674755240348298,
-0.071815532464258744,
-0.26792717880896527,
0.052480581416189075,
0.041432037960149271,
-0.013810679320049757
};
}
else if(lx=="bior3.7"){
gtfjxs= {0.0030210861012608843,
-0.0090632583037826529,
-0.016831765421310641,
0.074663985074019001,
0.031332978707362888,
-0.301159125922835,
-0.026499240945345472,
0.95164212189717856,
0.95164212189717856,
-0.026499240945345472,
-0.301159125922835,
0.031332978707362888,
0.074663985074019001,
-0.016831765421310641,
-0.0090632583037826529,
0.0030210861012608843
};
}
else if(lx=="bior3.9"){
gtfjxs= {-0.00067974437278369901,
0.0020392331183510968,
0.0050603192196119811,
-0.020618912641105536,
-0.014112787930175846,
0.09913478249423216,
0.012300136269419315,
-0.32019196836077857,
0.0020500227115698858,
0.94212570067820678,
0.94212570067820678,
0.0020500227115698858,
-0.32019196836077857,
0.012300136269419315,
0.09913478249423216,
-0.014112787930175846,
-0.020618912641105536,
0.0050603192196119811,
0.0020392331183510968,
-0.00067974437278369901
};
}
else if(lx=="bior4.4"){
gtfjxs= {0.0,
0.03782845550726404,
-0.023849465019556843,
-0.11062440441843718,
0.37740285561283066,
0.85269867900889385,
0.37740285561283066,
-0.11062440441843718,
-0.023849465019556843,
0.03782845550726404
};
}
else if(lx=="bior5.5"){
gtfjxs= {0.0,
0.0,
0.03968708834740544,
0.0079481086372403219,
-0.054463788468236907,
0.34560528195603346,
0.73666018142821055,
0.34560528195603346,
-0.054463788468236907,
0.0079481086372403219,
0.03968708834740544,
0.0
};
}
else if(lx=="bior6.8"){
gtfjxs= {0.0,
0.0019088317364812906,
-0.0019142861290887667,
-0.016990639867602342,
0.01193456527972926,
0.04973290349094079,
-0.077263173167204144,
-0.09405920349573646,
0.42079628460982682,
0.82592299745840225,
0.42079628460982682,
-0.09405920349573646,
-0.077263173167204144,
0.04973290349094079,
0.01193456527972926,
-0.016990639867602342,
-0.0019142861290887667,
0.0019088317364812906
};
}
else if(lx=="coif1"){
gtfjxs= {-0.01565572813546454,
-0.072732619512853897,
0.38486484686420286,
0.85257202021225542,
0.33789766245780922,
-0.072732619512853897
};
}
else if(lx=="coif2"){
gtfjxs= {-0.00072054944536451221,
-0.0018232088707029932,
0.0056114348193944995,
0.023680171946334084,
-0.059434418646456898,
-0.076488599078306393,
0.41700518442169254,
0.81272363544554227,
0.38611006682116222,
-0.067372554721963018,
-0.041464936781759151,
0.016387336463522112
};
}
else if(lx=="coif3"){
gtfjxs= {-3.4599772836212559e-05,
-7.0983303138141252e-05,
0.00046621696011288631,
0.0011175187708906016,
-0.0025745176887502236,
-0.0090079761366615805,
0.015880544863615904,
0.034555027573061628,
-0.082301927106885983,
-0.071799821619312018,
0.42848347637761874,
0.79377722262562056,
0.4051769024096169,
-0.061123390002672869,
-0.0657719112818555,
0.023452696141836267,
0.0077825964273254182,
-0.0037935128644910141
};
}
else if(lx=="coif4"){
gtfjxs= {-1.7849850030882614e-06,
-3.2596802368833675e-06,
3.1229875865345646e-05,
6.2339034461007128e-05,
-0.00025997455248771324,
-0.00058902075624433831,
0.0012665619292989445,
0.0037514361572784571,
-0.0056582866866107199,
-0.015211731527946259,
0.025082261844864097,
0.039334427123337491,
-0.096220442033987982,
-0.066627474263425038,
0.4343860564914685,
0.78223893092049901,
0.41530840703043026,
-0.056077313316754807,
-0.081266699680878754,
0.026682300156053072,
0.016068943964776348,
-0.0073461663276420935,
-0.0016294920126017326,
0.00089231366858231456
};
}
else if(lx=="coif5"){
gtfjxs= {-9.517657273819165e-08,
-1.6744288576823017e-07,
2.0637618513646814e-06,
3.7346551751414047e-06,
-2.1315026809955787e-05,
-4.1340432272512511e-05,
0.00014054114970203437,
0.00030225958181306315,
-0.00063813134304511142,
-0.0016628637020130838,
0.0024333732126576722,
0.0067641854480530832,
-0.0091642311624818458,
-0.019761778942572639,
0.032683574267111833,
0.041289208750181702,
-0.10557420870333893,
-0.062035963962903569,
0.43799162617183712,
0.77428960365295618,
0.42156620669085149,
-0.052043163176243773,
-0.091920010559696244,
0.02816802897093635,
0.023408156785839195,
-0.010131117519849788,
-0.004159358781386048,
0.0021782363581090178,
0.00035858968789573785,
-0.00021208083980379827
};
}
else if(lx=="sym2"){
gtfjxs= {-0.12940952255092145,
0.22414386804185735,
0.83651630373746899,
0.48296291314469025
};
}
else if(lx=="sym3"){
gtfjxs= {0.035226291882100656,
-0.085441273882241486,
-0.13501102001039084,
0.45987750211933132,
0.80689150931333875,
0.33267055295095688
};
}
else if(lx=="sym4"){
gtfjxs= {-0.075765714789273325,
-0.02963552764599851,
0.49761866763201545,
0.80373875180591614,
0.29785779560527736,
-0.099219543576847216,
-0.012603967262037833,
0.032223100604042702
};
}
else if(lx=="sym5"){
gtfjxs= {0.027333068345077982,
0.029519490925774643,
-0.039134249302383094,
0.1993975339773936,
0.72340769040242059,
0.63397896345821192,
0.016602105764522319,
-0.17532808990845047,
-0.021101834024758855,
0.019538882735286728
};
}
else if(lx=="sym6"){
gtfjxs= {0.015404109327027373,
0.0034907120842174702,
-0.11799011114819057,
-0.048311742585632998,
0.49105594192674662,
0.787641141030194,
0.3379294217276218,
-0.072637522786462516,
-0.021060292512300564,
0.044724901770665779,
0.0017677118642428036,
-0.007800708325034148
};
}
else if(lx=="sym7"){
gtfjxs= {0.0026818145682578781,
-0.0010473848886829163,
-0.01263630340325193,
0.03051551316596357,
0.067892693501372697,
-0.049552834937127255,
0.017441255086855827,
0.5361019170917628,
0.76776431700316405,
0.28862963175151463,
-0.14004724044296152,
-0.10780823770381774,
0.0040102448715336634,
0.010268176708511255
};
}
else if(lx=="sym8"){
gtfjxs= {-0.0033824159510061256,
-0.00054213233179114812,
0.031695087811492981,
0.0076074873249176054,
-0.14329423835080971,
-0.061273359067658524,
0.48135965125837221,
0.77718575170052351,
0.3644418948353314,
-0.051945838107709037,
-0.027219029917056003,
0.049137179673607506,
0.0038087520138906151,
-0.014952258337048231,
-0.0003029205147213668,
0.0018899503327594609
};
}
else if(lx=="sym9"){
gtfjxs= {0.0014009155259146807,
0.00061978088898558676,
-0.013271967781817119,
-0.01152821020767923,
0.03022487885827568,
0.00058346274612580684,
-0.054568958430834071,
0.238760914607303,
0.717897082764412,
0.61733844914093583,
0.035272488035271894,
-0.19155083129728512,
-0.018233770779395985,
0.06207778930288603,
0.0088592674934004842,
-0.010264064027633142,
-0.00047315449868008311,
0.0010694900329086053
};
}
else if(lx=="sym10"){
gtfjxs= {0.00077015980911449011,
9.5632670722894754e-05,
-0.0086412992770224222,
-0.0014653825813050513,
0.045927239231092203,
0.011609893903711381,
-0.15949427888491757,
-0.070880535783243853,
0.47169066693843925,
0.7695100370211071,
0.38382676106708546,
-0.035536740473817552,
-0.0319900568824278,
0.049994972077376687,
0.0057649120335819086,
-0.02035493981231129,
-0.00080435893201654491,
0.0045931735853118284,
5.7036083618494284e-05,
-0.00045932942100465878
};
}
return gtfjxs;
}
QVector<double> hqcggtxs(QString lx){
QVector<double> gtfjxs;
if(lx=="db1"){
gtfjxs= {-0.7071, 0.7071};
}
else if(lx=="db2"){
gtfjxs= {-0.48296291314469025, 0.83651630373746899, -0.22414386804185735,
-0.12940952255092145};
}
else if(lx=="db3"){
gtfjxs= {-0.33267055295095688, 0.80689150931333875, -0.45987750211933132,
-0.13501102001039084, 0.085441273882241486, 0.035226291882100656 };
}
else if(lx=="db4"){
gtfjxs= {-0.23037781330885523, 0.71484657055254153, -0.63088076792959036,
-0.027983769416983849, 0.18703481171888114, 0.030841381835986965,
-0.032883011666982945, -0.010597401784997278 };
}
else if(lx=="db5"){
gtfjxs= {-0.16010239797412501, 0.60382926979747287, -0.72430852843857441,
0.13842814590110342, 0.24229488706619015, -0.03224486958502952,
-0.077571493840065148, -0.0062414902130117052, 0.012580751999015526,
0.0033357252850015492 };
}
else if(lx=="db6"){
gtfjxs= {-0.11154074335008017,
0.49462389039838539,
-0.75113390802157753,
0.3152503517092432,
0.22626469396516913,
-0.12976686756709563,
-0.097501605587079362,
0.027522865530016288,
0.031582039318031156,
0.0005538422009938016,
-0.0047772575110106514,
-0.0010773010849955799
};
}
else if(lx=="db7"){
gtfjxs= {-0.077852054085062364,
0.39653931948230575,
-0.72913209084655506,
0.4697822874053586,
0.14390600392910627,
-0.22403618499416572,
-0.071309219267050042,
0.080612609151065898,
0.038029936935034633,
-0.01657454163101562,
-0.012550998556013784,
0.0004295779730047027,
0.0018016407039998328,
0.00035371380000103988
};
}
else if(lx=="db8"){
gtfjxs= {-0.054415842243081609,
0.31287159091446592,
-0.67563073629801285,
0.58535468365486909,
0.015829105256023893,
-0.28401554296242809,
-0.00047248457399797254,
0.12874742662018601,
0.017369301002022108,
-0.044088253931064719,
-0.013981027917015516,
0.0087460940470156547,
0.0048703529930106603,
-0.00039174037299597711,
-0.00067544940599855677,
-0.00011747678400228192
};
}
else if(lx=="db9"){
gtfjxs= {-0.038077947363167282,
0.24383467463766728,
-0.6048231236767786,
0.65728807803663891,
-0.13319738582208895,
-0.29327378327258685,
0.096840783220879037,
0.14854074933476008,
-0.030725681478322865,
-0.067632829059523988,
-0.00025094711499193845,
0.022361662123515244,
0.004723204757894831,
-0.0042815036819047227,
-0.0018476468829611268,
0.00023038576399541288,
0.00025196318899817888,
3.9347319995026124e-05
};
}
else if(lx=="db10"){
gtfjxs= {-0.026670057900950818,
0.18817680007762133,
-0.52720118893091983,
0.68845903945259213,
-0.28117234366042648,
-0.24984642432648865,
0.19594627437659665,
0.12736934033574265,
-0.093057364603806592,
-0.071394147165860775,
0.029457536821945671,
0.033212674058933238,
-0.0036065535669883944,
-0.010733175482979604,
-0.0013953517469940798,
0.0019924052949908499,
0.00068585669500468248,
-0.0001164668549943862,
-9.3588670001089845e-05,
-1.3264203002354869e-05
};
}
else if(lx=="db11"){
gtfjxs= {-0.018694297761470441,
0.14406702115061959,
-0.44989976435603013,
0.68568677491617847,
-0.41196436894789695,
-0.16227524502747828,
0.27423084681792875,
0.066043588196690886,
-0.14981201246638268,
-0.04647995511667613,
0.066438785695020222,
0.031335090219045313,
-0.020840904360180039,
-0.015364820906201324,
0.0033408588730145018,
0.0049284176560587777,
0.00030859285881515924,
-0.00089302325066623663,
-0.00024915252355281426,
5.4439074699366381e-05,
3.4634984186983789e-05,
4.4942742772363519e-06
};
}
else if(lx=="db12"){
gtfjxs= {-0.013112257957229239,
0.10956627282118277,
-0.37735513521420411,
0.65719872257929113,
-0.51588647842780067,
-0.044763885653777619,
0.31617845375277914,
-0.023779257256064865,
-0.18247860592758275,
0.0053595696743599965,
0.09643212009649671,
0.010849130255828966,
-0.041546277495087637,
-0.01221864906974642,
0.012840825198299882,
0.0067114990087955486,
-0.0022486072409952287,
-0.0021795036186277044,
-6.5451282125215034e-06,
0.00038865306282092672,
8.8504109208203182e-05,
-2.4241545757030318e-05,
-1.2776952219379579e-05,
-1.5290717580684923e-06
};
}
else if(lx=="db13"){
gtfjxs= {-0.0092021335389622788,
0.082861243872901946,
-0.31199632216043488,
0.61105585115878114,
-0.58888957043121193,
0.086985726179645007,
0.31497290771138414,
-0.12457673075080665,
-0.17947607942935084,
0.072948933656788742,
0.10580761818792761,
-0.026488406475345658,
-0.056139477100276156,
0.0023799722540522269,
0.023831420710327809,
0.0039239414487955773,
-0.0072555894016171187,
-0.002761911234656831,
0.0013156739118922766,
0.00093232613086724904,
-4.9251525126285676e-05,
-0.00016512898855650571,
-3.0678537579324358e-05,
1.0441930571407941e-05,
4.7004164793608082e-06,
5.2200350984547998e-07
};
}
else if(lx=="db14"){
gtfjxs= {-0.0064611534600864905,
0.062364758849384874,
-0.25485026779256437,
0.55430561794077093,
-0.63118784910471981,
0.21867068775886594,
0.27168855227867705,
-0.21803352999321651,
-0.13839521386479153,
0.13998901658445695,
0.086748411568110598,
-0.071548955503983505,
-0.05523712625925082,
0.026981408307947971,
0.030185351540353976,
-0.0056150495303375755,
-0.012789493266340071,
-0.00074621898926387534,
0.003849638868019787,
0.001061691085606874,
-0.00070802115423540481,
-0.00038683194731287514,
4.1777245770370672e-05,
6.875504252695734e-05,
1.0337209184568496e-05,
-4.3897049017804176e-06,
-1.7249946753674012e-06,
-1.7871399683109222e-07
};
}
else if(lx=="db15"){
gtfjxs= {-0.0045385373615773762,
0.046743394892750617,
-0.20602386398692688,
0.49263177170797529,
-0.64581314035721027,
0.33900253545462167,
0.19320413960907623,
-0.28888259656686216,
-0.065282952848765688,
0.19014671400708816,
0.039666176555733602,
-0.11112093603713753,
-0.033877143923563204,
0.054780550584559995,
0.025767007328366939,
-0.020810050169636805,
-0.015083918027862582,
0.0051010003604228726,
0.0064877345603061454,
-0.00024175649075894543,
-0.0019433239803823459,
-0.00037348235413726472,
0.00035956524436229364,
0.00015589648992055726,
-2.579269915531323e-05,
-2.8133296266037558e-05,
-3.3629871817363823e-06,
1.8112704079399406e-06,
6.3168823258794506e-07,
6.1333599133037138e-08
};
}
else if(lx=="bior1.1"){
gtfjxs= {-0.70710678118654757,
0.70710678118654757
};
}
else if(lx=="bior1.3"){
gtfjxs= {0.0,
0.0,
-0.70710678118654757,
0.70710678118654757,
0.0,
0.0
};
}
else if(lx=="bior1.5"){
gtfjxs= {0.0,
0.0,
0.0,
0.0,
-0.70710678118654757,
0.70710678118654757,
0.0,
0.0,
0.0,
0.0
};
}
else if(lx=="bior2.2"){
gtfjxs= {0.0,
0.35355339059327379,
-0.70710678118654757,
0.35355339059327379,
0.0,
0.0
};
}
else if(lx=="bior2.4"){
gtfjxs= {0.0,
0.0,
0.0,
0.35355339059327379,
-0.70710678118654757,
0.35355339059327379,
0.0,
0.0,
0.0,
0.0
};
}
else if(lx=="bior2.6"){
gtfjxs= {0.0,
0.0,
0.0,
0.0,
0.0,
0.35355339059327379,
-0.70710678118654757,
0.35355339059327379,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
};
}
else if(lx=="bior2.8"){
gtfjxs= {0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.35355339059327379,
-0.70710678118654757,
0.35355339059327379,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
};
}
else if(lx=="bior3.1"){
gtfjxs= {-0.17677669529663689,
0.53033008588991071,
-0.53033008588991071,
0.17677669529663689
};
}
else if(lx=="bior3.3"){
gtfjxs= {0.0,
0.0,
-0.17677669529663689,
0.53033008588991071,
-0.53033008588991071,
0.17677669529663689,
0.0,
0.0
};
}
else if(lx=="bior3.5"){
gtfjxs= {0.0,
0.0,
0.0,
0.0,
-0.17677669529663689,
0.53033008588991071,
-0.53033008588991071,
0.17677669529663689,
0.0,
0.0,
0.0,
0.0
};
}
else if(lx=="bior3.7"){
gtfjxs= {0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
-0.17677669529663689,
0.53033008588991071,
-0.53033008588991071,
0.17677669529663689,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
};
}
else if(lx=="bior3.9"){
gtfjxs= {0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
-0.17677669529663689,
0.53033008588991071,
-0.53033008588991071,
0.17677669529663689,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
};
}
else if(lx=="bior4.4"){
gtfjxs= {0.0,
-0.064538882628697058,
0.040689417609164058,
0.41809227322161724,
-0.7884856164055829,
0.41809227322161724,
0.040689417609164058,
-0.064538882628697058,
0.0,
0.0
};
}
else if(lx=="bior5.5"){
gtfjxs= {-0.013456709459118716,
-0.0026949668801115071,
0.13670658466432914,
-0.093504697400938863,
-0.47680326579848425,
0.89950610974864842,
-0.47680326579848425,
-0.093504697400938863,
0.13670658466432914,
-0.0026949668801115071,
-0.013456709459118716,
0.0
};
}
else if(lx=="bior6.8"){
gtfjxs= {0.0,
0.0,
0.0,
0.014426282505624435,
-0.014467504896790148,
-0.078722001062628819,
0.040367979030339923,
0.41784910915027457,
-0.75890772945365415,
0.41784910915027457,
0.040367979030339923,
-0.078722001062628819,
-0.014467504896790148,
0.014426282505624435,
0.0,
0.0,
0.0,
0.0
};
}
else if(lx=="coif1"){
gtfjxs= {0.072732619512853897,
0.33789766245780922,
-0.85257202021225542,
0.38486484686420286,
0.072732619512853897,
-0.01565572813546454
};
}
else if(lx=="coif2"){
gtfjxs= {-0.016387336463522112,
-0.041464936781759151,
0.067372554721963018,
0.38611006682116222,
-0.81272363544554227,
0.41700518442169254,
0.076488599078306393,
-0.059434418646456898,
-0.023680171946334084,
0.0056114348193944995,
0.0018232088707029932,
-0.00072054944536451221
};
}
else if(lx=="coif3"){
gtfjxs= {0.0037935128644910141,
0.0077825964273254182,
-0.023452696141836267,
-0.0657719112818555,
0.061123390002672869,
0.4051769024096169,
-0.79377722262562056,
0.42848347637761874,
0.071799821619312018,
-0.082301927106885983,
-0.034555027573061628,
0.015880544863615904,
0.0090079761366615805,
-0.0025745176887502236,
-0.0011175187708906016,
0.00046621696011288631,
7.0983303138141252e-05,
-3.4599772836212559e-05
};
}
else if(lx=="coif4"){
gtfjxs= {-0.00089231366858231456,
-0.0016294920126017326,
0.0073461663276420935,
0.016068943964776348,
-0.026682300156053072,
-0.081266699680878754,
0.056077313316754807,
0.41530840703043026,
-0.78223893092049901,
0.4343860564914685,
0.066627474263425038,
-0.096220442033987982,
-0.039334427123337491,
0.025082261844864097,
0.015211731527946259,
-0.0056582866866107199,
-0.0037514361572784571,
0.0012665619292989445,
0.00058902075624433831,
-0.00025997455248771324,
-6.2339034461007128e-05,
3.1229875865345646e-05,
3.2596802368833675e-06,
-1.7849850030882614e-06
};
}
else if(lx=="coif5"){
gtfjxs= {0.00021208083980379827,
0.00035858968789573785,
-0.0021782363581090178,
-0.004159358781386048,
0.010131117519849788,
0.023408156785839195,
-0.02816802897093635,
-0.091920010559696244,
0.052043163176243773,
0.42156620669085149,
-0.77428960365295618,
0.43799162617183712,
0.062035963962903569,
-0.10557420870333893,
-0.041289208750181702,
0.032683574267111833,
0.019761778942572639,
-0.0091642311624818458,
-0.0067641854480530832,
0.0024333732126576722,
0.0016628637020130838,
-0.00063813134304511142,
-0.00030225958181306315,
0.00014054114970203437,
4.1340432272512511e-05,
-2.1315026809955787e-05,
-3.7346551751414047e-06,
2.0637618513646814e-06,
1.6744288576823017e-07,
-9.517657273819165e-08
};
}
else if(lx=="sym2"){
gtfjxs= {-0.48296291314469025,
0.83651630373746899,
-0.22414386804185735,
-0.12940952255092145
};
}
else if(lx=="sym3"){
gtfjxs= {-0.33267055295095688,
0.80689150931333875,
-0.45987750211933132,
-0.13501102001039084,
0.085441273882241486,
0.035226291882100656
};
}
else if(lx=="sym4"){
gtfjxs= {-0.032223100604042702,
-0.012603967262037833,
0.099219543576847216,
0.29785779560527736,
-0.80373875180591614,
0.49761866763201545,
0.02963552764599851,
-0.075765714789273325
};
}
else if(lx=="sym5"){
gtfjxs= {-0.019538882735286728,
-0.021101834024758855,
0.17532808990845047,
0.016602105764522319,
-0.63397896345821192,
0.72340769040242059,
-0.1993975339773936,
-0.039134249302383094,
-0.029519490925774643,
0.027333068345077982
};
}
else if(lx=="sym6"){
gtfjxs= {0.007800708325034148,
0.0017677118642428036,
-0.044724901770665779,
-0.021060292512300564,
0.072637522786462516,
0.3379294217276218,
-0.787641141030194,
0.49105594192674662,
0.048311742585632998,
-0.11799011114819057,
-0.0034907120842174702,
0.015404109327027373
};
}
else if(lx=="sym7"){
gtfjxs= {-0.010268176708511255,
0.0040102448715336634,
0.10780823770381774,
-0.14004724044296152,
-0.28862963175151463,
0.76776431700316405,
-0.5361019170917628,
0.017441255086855827,
0.049552834937127255,
0.067892693501372697,
-0.03051551316596357,
-0.01263630340325193,
0.0010473848886829163,
0.0026818145682578781
};
}
else if(lx=="sym8"){
gtfjxs= {-0.0018899503327594609,
-0.0003029205147213668,
0.014952258337048231,
0.0038087520138906151,
-0.049137179673607506,
-0.027219029917056003,
0.051945838107709037,
0.3644418948353314,
-0.77718575170052351,
0.48135965125837221,
0.061273359067658524,
-0.14329423835080971,
-0.0076074873249176054,
0.031695087811492981,
0.00054213233179114812,
-0.0033824159510061256
};
}
else if(lx=="sym9"){
gtfjxs= {-0.0010694900329086053,
-0.00047315449868008311,
0.010264064027633142,
0.0088592674934004842,
-0.06207778930288603,
-0.018233770779395985,
0.19155083129728512,
0.035272488035271894,
-0.61733844914093583,
0.717897082764412,
-0.238760914607303,
-0.054568958430834071,
-0.00058346274612580684,
0.03022487885827568,
0.01152821020767923,
-0.013271967781817119,
-0.00061978088898558676,
0.0014009155259146807
};
}
else if(lx=="sym10"){
gtfjxs= {0.00045932942100465878,
5.7036083618494284e-05,
-0.0045931735853118284,
-0.00080435893201654491,
0.02035493981231129,
0.0057649120335819086,
-0.049994972077376687,
-0.0319900568824278,
0.035536740473817552,
0.38382676106708546,
-0.7695100370211071,
0.47169066693843925,
0.070880535783243853,
-0.15949427888491757,
-0.011609893903711381,
0.045927239231092203,
0.0014653825813050513,
-0.0086412992770224222,
-9.5632670722894754e-05,
0.00077015980911449011
};
}
return gtfjxs;
}
标签:
相关文章
最新发布
- python利用selenium实现大麦网抢票
- python中的索引
- 华为OD机试E卷 --流浪地球--24年OD统一考试(Java & JS & Python & C & C++)
- Python 3.7-3.11版本dlib库快速安装指南
- python 更换pip源
- 华为OD机试E卷 --恢复数字序列--24年OD统一考试(Java & JS & Python & C & C++)
- 华为OD机试E卷 --选修课--24年OD统一考试(Java & JS & Python & C & C++)
- python SQLAlchemy ORM——从零开始学习 01 安装库
- Python 入门教程(2)搭建环境 | 2.3、VSCode配置Python开发环境
- Django 3 Web应用开发实战PDF、EPUB免费下载
点击排行
- 版本匹配指南:Numpy版本和Python版本的对应关系
- 版本匹配指南:PyTorch版本、torchvision 版本和Python版本的对应关系
- Python 可视化 web 神器:streamlit、Gradio、dash、nicegui;低代码 Python Web 框架:PyWebIO
- 相关性分析——Pearson相关系数+热力图(附data和Python完整代码)
- Anaconda版本和Python版本对应关系(持续更新...)
- Python与PyTorch的版本对应
- Windows上安装 Python 环境并配置环境变量 (超详细教程)
- Python pyinstaller打包exe最完整教程