comparison dsp/wavelet/Wavelet.cpp @ 483:fdaa63607c15

Untabify, indent, tidy
author Chris Cannam <cannam@all-day-breakfast.com>
date Fri, 31 May 2019 11:54:32 +0100
parents 7461bf03194e
children
comparison
equal deleted inserted replaced
482:cbe668c7d724 483:fdaa63607c15
31 case Daubechies_8: return "Daubechies 8"; 31 case Daubechies_8: return "Daubechies 8";
32 case Daubechies_9: return "Daubechies 9"; 32 case Daubechies_9: return "Daubechies 9";
33 case Daubechies_10: return "Daubechies 10"; 33 case Daubechies_10: return "Daubechies 10";
34 case Daubechies_20: return "Daubechies 20"; 34 case Daubechies_20: return "Daubechies 20";
35 case Daubechies_40: return "Daubechies 40"; 35 case Daubechies_40: return "Daubechies 40";
36 case Symlet_2: return "Symlet 2"; 36 case Symlet_2: return "Symlet 2";
37 case Symlet_3: return "Symlet 3"; 37 case Symlet_3: return "Symlet 3";
38 case Symlet_4: return "Symlet 4"; 38 case Symlet_4: return "Symlet 4";
39 case Symlet_5: return "Symlet 5"; 39 case Symlet_5: return "Symlet 5";
40 case Symlet_6: return "Symlet 6"; 40 case Symlet_6: return "Symlet 6";
41 case Symlet_7: return "Symlet 7"; 41 case Symlet_7: return "Symlet 7";
42 case Symlet_8: return "Symlet 8"; 42 case Symlet_8: return "Symlet 8";
43 case Symlet_9: return "Symlet 9"; 43 case Symlet_9: return "Symlet 9";
44 case Symlet_10: return "Symlet 10"; 44 case Symlet_10: return "Symlet 10";
45 case Symlet_20: return "Symlet 20"; 45 case Symlet_20: return "Symlet 20";
46 case Symlet_30: return "Symlet 30"; 46 case Symlet_30: return "Symlet 30";
47 case Coiflet_1: return "Coiflet 1"; 47 case Coiflet_1: return "Coiflet 1";
48 case Coiflet_2: return "Coiflet 2"; 48 case Coiflet_2: return "Coiflet 2";
49 case Coiflet_3: return "Coiflet 3"; 49 case Coiflet_3: return "Coiflet 3";
50 case Coiflet_4: return "Coiflet 4"; 50 case Coiflet_4: return "Coiflet 4";
51 case Coiflet_5: return "Coiflet 5"; 51 case Coiflet_5: return "Coiflet 5";
52 case Biorthogonal_1_3: return "Biorthogonal 1.3"; 52 case Biorthogonal_1_3: return "Biorthogonal 1.3";
53 case Biorthogonal_1_5: return "Biorthogonal 1.5"; 53 case Biorthogonal_1_5: return "Biorthogonal 1.5";
54 case Biorthogonal_2_2: return "Biorthogonal 2.2"; 54 case Biorthogonal_2_2: return "Biorthogonal 2.2";
55 case Biorthogonal_2_4: return "Biorthogonal 2.4"; 55 case Biorthogonal_2_4: return "Biorthogonal 2.4";
56 case Biorthogonal_2_6: return "Biorthogonal 2.6"; 56 case Biorthogonal_2_6: return "Biorthogonal 2.6";
57 case Biorthogonal_2_8: return "Biorthogonal 2.8"; 57 case Biorthogonal_2_8: return "Biorthogonal 2.8";
58 case Biorthogonal_3_1: return "Biorthogonal 3.1"; 58 case Biorthogonal_3_1: return "Biorthogonal 3.1";
59 case Biorthogonal_3_3: return "Biorthogonal 3.3"; 59 case Biorthogonal_3_3: return "Biorthogonal 3.3";
60 case Biorthogonal_3_5: return "Biorthogonal 3.5"; 60 case Biorthogonal_3_5: return "Biorthogonal 3.5";
61 case Biorthogonal_3_7: return "Biorthogonal 3.7"; 61 case Biorthogonal_3_7: return "Biorthogonal 3.7";
62 case Biorthogonal_3_9: return "Biorthogonal 3.9"; 62 case Biorthogonal_3_9: return "Biorthogonal 3.9";
63 case Biorthogonal_4_4: return "Biorthogonal 4.4"; 63 case Biorthogonal_4_4: return "Biorthogonal 4.4";
64 case Biorthogonal_5_5: return "Biorthogonal 5.5"; 64 case Biorthogonal_5_5: return "Biorthogonal 5.5";
65 case Biorthogonal_6_8: return "Biorthogonal 6.8"; 65 case Biorthogonal_6_8: return "Biorthogonal 6.8";
66 case Meyer: return "Meyer"; 66 case Meyer: return "Meyer";
67 } 67 }
68 68
69 return "(unknown)"; 69 return "(unknown)";
70 } 70 }
71 71
76 { 76 {
77 lpd.clear(); 77 lpd.clear();
78 hpd.clear(); 78 hpd.clear();
79 79
80 int flength = 0; 80 int flength = 0;
81 81
82 switch (wavelet) { 82 switch (wavelet) {
83 83
84 case Haar: 84 case Haar:
85 lpd.push_back(0.70710678118655); 85 lpd.push_back(0.70710678118655);
86 lpd.push_back(0.70710678118655); 86 lpd.push_back(0.70710678118655);
97 hpd.push_back(-0.48296291314469); 97 hpd.push_back(-0.48296291314469);
98 hpd.push_back(0.83651630373747); 98 hpd.push_back(0.83651630373747);
99 hpd.push_back(-0.22414386804186); 99 hpd.push_back(-0.22414386804186);
100 hpd.push_back(-0.12940952255092); 100 hpd.push_back(-0.12940952255092);
101 flength = 4; 101 flength = 4;
102 break; 102 break;
103 103
104 case Daubechies_3: 104 case Daubechies_3:
105 lpd.push_back(0.03522629188210); 105 lpd.push_back(0.03522629188210);
106 lpd.push_back(-0.08544127388224); 106 lpd.push_back(-0.08544127388224);
107 lpd.push_back(-0.13501102001039); 107 lpd.push_back(-0.13501102001039);
586 hpd.push_back(-0.00000000000000); 586 hpd.push_back(-0.00000000000000);
587 hpd.push_back(-0.00000000000000); 587 hpd.push_back(-0.00000000000000);
588 hpd.push_back(-0.00000000000000); 588 hpd.push_back(-0.00000000000000);
589 flength = 80; 589 flength = 80;
590 break; 590 break;
591 591
592 case Symlet_2: 592 case Symlet_2:
593 lpd.push_back(-0.12940952255092); 593 lpd.push_back(-0.12940952255092);
594 lpd.push_back(0.22414386804186); 594 lpd.push_back(0.22414386804186);
595 lpd.push_back(0.83651630373747); 595 lpd.push_back(0.83651630373747);
596 lpd.push_back(0.48296291314469); 596 lpd.push_back(0.48296291314469);
686 hpd.push_back(-0.11799011114819); 686 hpd.push_back(-0.11799011114819);
687 hpd.push_back(-0.00349071208422); 687 hpd.push_back(-0.00349071208422);
688 hpd.push_back(0.01540410932703); 688 hpd.push_back(0.01540410932703);
689 flength = 12; 689 flength = 12;
690 break; 690 break;
691 691
692 case Symlet_7: 692 case Symlet_7:
693 lpd.push_back(0.00268181456826); 693 lpd.push_back(0.00268181456826);
694 lpd.push_back(-0.00104738488868); 694 lpd.push_back(-0.00104738488868);
695 lpd.push_back(-0.01263630340325); 695 lpd.push_back(-0.01263630340325);
696 lpd.push_back(0.03051551316596); 696 lpd.push_back(0.03051551316596);