annotate dsp/wavelet/Wavelet.h @ 484:d48276a3ae24
Add emacs/vi indent directives
author |
Chris Cannam <cannam@all-day-breakfast.com> |
date |
Fri, 31 May 2019 12:09:58 +0100 |
parents |
fdaa63607c15 |
children |
701233f8ed41 |
rev |
line source |
c@285
|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
|
c@285
|
2 /*
|
c@285
|
3 QM DSP Library
|
c@285
|
4
|
c@285
|
5 Centre for Digital Music, Queen Mary, University of London.
|
c@285
|
6 This file copyright 2009 Thomas Wilmering.
|
c@309
|
7
|
c@309
|
8 This program is free software; you can redistribute it and/or
|
c@309
|
9 modify it under the terms of the GNU General Public License as
|
c@309
|
10 published by the Free Software Foundation; either version 2 of the
|
c@309
|
11 License, or (at your option) any later version. See the file
|
c@309
|
12 COPYING included with this distribution for more information.
|
c@285
|
13 */
|
c@285
|
14
|
c@285
|
15 #ifndef _WAVELET_H_
|
c@285
|
16 #define _WAVELET_H_
|
c@285
|
17
|
c@285
|
18 #include <string>
|
c@285
|
19 #include <vector>
|
c@285
|
20
|
c@285
|
21 class Wavelet
|
c@285
|
22 {
|
c@285
|
23 public:
|
c@285
|
24 enum Type {
|
c@285
|
25 Haar = 0,
|
c@285
|
26 Daubechies_2,
|
c@285
|
27 Daubechies_3,
|
c@285
|
28 Daubechies_4,
|
c@285
|
29 Daubechies_5,
|
c@285
|
30 Daubechies_6,
|
c@285
|
31 Daubechies_7,
|
c@285
|
32 Daubechies_8,
|
c@285
|
33 Daubechies_9,
|
c@285
|
34 Daubechies_10,
|
c@285
|
35 Daubechies_20,
|
c@285
|
36 Daubechies_40,
|
cannam@483
|
37 Symlet_2,
|
cannam@483
|
38 Symlet_3,
|
cannam@483
|
39 Symlet_4,
|
cannam@483
|
40 Symlet_5,
|
cannam@483
|
41 Symlet_6,
|
cannam@483
|
42 Symlet_7,
|
cannam@483
|
43 Symlet_8,
|
cannam@483
|
44 Symlet_9,
|
cannam@483
|
45 Symlet_10,
|
cannam@483
|
46 Symlet_20,
|
cannam@483
|
47 Symlet_30,
|
cannam@483
|
48 Coiflet_1,
|
cannam@483
|
49 Coiflet_2,
|
cannam@483
|
50 Coiflet_3,
|
cannam@483
|
51 Coiflet_4,
|
cannam@483
|
52 Coiflet_5,
|
cannam@483
|
53 Biorthogonal_1_3,
|
cannam@483
|
54 Biorthogonal_1_5,
|
cannam@483
|
55 Biorthogonal_2_2,
|
cannam@483
|
56 Biorthogonal_2_4,
|
cannam@483
|
57 Biorthogonal_2_6,
|
cannam@483
|
58 Biorthogonal_2_8,
|
cannam@483
|
59 Biorthogonal_3_1,
|
cannam@483
|
60 Biorthogonal_3_3,
|
cannam@483
|
61 Biorthogonal_3_5,
|
cannam@483
|
62 Biorthogonal_3_7,
|
cannam@483
|
63 Biorthogonal_3_9,
|
cannam@483
|
64 Biorthogonal_4_4,
|
cannam@483
|
65 Biorthogonal_5_5,
|
cannam@483
|
66 Biorthogonal_6_8,
|
cannam@483
|
67 Meyer,
|
c@285
|
68
|
c@285
|
69 LastType = Meyer
|
c@285
|
70 };
|
c@285
|
71
|
c@285
|
72 static std::string getWaveletName(Type);
|
c@285
|
73
|
c@285
|
74 static void createDecompositionFilters(Type,
|
c@434
|
75 std::vector<double> &lpd,
|
c@434
|
76 std::vector<double> &hpd);
|
c@285
|
77 };
|
c@285
|
78
|
c@285
|
79 #endif
|