Debian Codegraph @

dwtools/DTW.h

raw symbols SCIP
1 #cxx . . $ `<file>/dwtools/DTW.h`/ifndef _DTW_h_
2 #define _DTW_h_cxx . . $ `dwtools/DTW.h:2:9`!
3 /* DTW.h
4 *
5 * Copyright (C) 1993-2017 David Weenink
6 *
7 * This code is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or (at
10 * your option) any later version.
11 *
12 * This code is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this work. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 /*
22 djmw 20020813 GPL header
23 djmw 20110306 Latest modification.
24 */
25
26 #include "Spectrogram.h"cxx . . $ `<file>/fon/Spectrogram.h`/
27 #include "Polygon_extensions.h"cxx . . $ `<file>/dwtools/Polygon_extensions.h`/
28 #include "Pitch.h"cxx . . $ `<file>/fon/Pitch.h`/
29 #include "DurationTier.h"cxx . . $ `<file>/fon/DurationTier.h`/
30 #include "Sound.h"cxx . . $ `<file>/fon/Sound.h`/
31
32 #include "DTW_def.h"cxx . . $ `<file>/dwtools/DTW_def.h`/
33
34 #define DTW_SAKOECHIBAcxx . . $ `dwtools/DTW.h:34:9`! 1
35 #define DTW_SLOPEScxx . . $ `dwtools/DTW.h:35:9`! 2
36
37 #define DTW_UNREACHABLEcxx . . $ `dwtools/DTW.h:37:9`! -1
38 #define DTW_FORBIDDENcxx . . $ `dwtools/DTW.h:38:9`! -2
39 #define DTW_STARTcxx . . $ `dwtools/DTW.h:39:9`! 3
40 #define DTW_XANDYcxx . . $ `dwtools/DTW.h:40:9`! 2
41 #define DTW_Xcxx . . $ `dwtools/DTW.h:41:9`! 4
42 #define DTW_Ycxx . . $ `dwtools/DTW.h:42:9`! 6
43
44 void DTW_Path_Query_initcxx . . $ DTW_Path_Query_init(32599237e6804113). (DTW_Path_Querycxx . . $ DTW_Path_Query# me, integercxx . . $ integer# ny, integercxx . . $ integer# nx);
45
46 /* Prototype on y-axis and test on x-axis */
47 autoDTWcxx . . $ autoDTW# DTW_createcxx . . $ DTW_create(266b4c6b39481820). (double tminp, double tmaxp, integercxx . . $ integer# ntp, double dtp, double t1p,
48 double tminc, double tmaxc, integercxx . . $ integer# ntc, double dtc, double t1c);
49
50 void DTW_setWeightscxx . . $ DTW_setWeights(c9c8af126407f471). (DTWcxx . . $ DTW# me, double wx, double wy, double wd);
51
52 autoDTWcxx . . $ autoDTW# DTW_swapAxescxx . . $ DTW_swapAxes(6bfe1dff7e6574dc). (DTWcxx . . $ DTW# me);
53
54 void DTW_findPath_bandAndSlopecxx . . $ DTW_findPath_bandAndSlope(c86b42c214827506). (DTWcxx . . $ DTW# me, double sakoeChibaBand, int localSlope, autoMatrixcxx . . $ autoMatrix# *cumulativeDists);
55
56 void DTW_findPathcxx . . $ DTW_findPath(7c4c07b8524d5375). (DTWcxx . . $ DTW# me, bool matchStart, bool matchEnd, int slope); // deprecated
57 /* Obsolete
58 Function:
59 Calculate the minimum path (through a distance matrix).
60
61 Possible constraints:
62
63 matchStart: path starts at position (1,1) (bottom-left)
64 matchEnd: path ends at (I,J) (top-right)
65 slope: 1 no constraints
66 2 1/3 < slope < 3
67 3 1/2 < slope < 2
68 4 2/3 < slope < 3/2
69
70 For algorithm and DP-equations see the article (& especially table I) in:
71 Sakoe, H. & Chiba, S. (1978), Dynamic Programming Algorithm Optimization
72 for Spoken Word recognition, IEEE Trans. on ASSP, vol 26, 43-49.
73 */
74
75 void DTW_Path_recodecxx . . $ DTW_Path_recode(1effd30d7a74ffbf). (DTWcxx . . $ DTW# me);
76
77 double DTW_getYTimeFromXTimecxx . . $ DTW_getYTimeFromXTime(17d996b58e1db56). (DTWcxx . . $ DTW# me, double tx);
78
79 double DTW_getXTimeFromYTimecxx . . $ DTW_getXTimeFromYTime(17d996b58e1db56). (DTWcxx . . $ DTW# me, double ty);
80
81 double DTW_getPathYcxx . . $ DTW_getPathY(17d996b58e1db56). (DTWcxx . . $ DTW# me, double tx);
82
83 integercxx . . $ integer# DTW_getMaximumConsecutiveStepscxx . . $ DTW_getMaximumConsecutiveSteps(34de04e3b517b2cc). (DTWcxx . . $ DTW# me, int direction);
84
85 void DTW_paintDistancescxx . . $ DTW_paintDistances(24885978ad4cd331). (DTWcxx . . $ DTW# me, Graphicscxx . . $ Graphics# g, double xmin, double xmax, double ymin,
86 double ymax, double minimum, double maximum, bool garnish);
87
88 void DTW_drawPathcxx . . $ DTW_drawPath(5f4953c8558cdc27). (DTWcxx . . $ DTW# me, Graphicscxx . . $ Graphics# g, double xmin, double xmax, double ymin,
89 double ymax, bool garnish);
90
91 void DTW_drawWarpXcxx . . $ DTW_drawWarpX(d33eabef8cb26635). (DTWcxx . . $ DTW# me, Graphicscxx . . $ Graphics# g, double xmin, double xmax, double ymin, double ymax, double tx, bool garnish);
92 void DTW_drawWarpYcxx . . $ DTW_drawWarpY(d33eabef8cb26635). (DTWcxx . . $ DTW# me, Graphicscxx . . $ Graphics# g, double xmin, double xmax, double ymin, double ymax, double ty, bool garnish);
93
94 void DTW_pathRemoveRedundantNodescxx . . $ DTW_pathRemoveRedundantNodes(1effd30d7a74ffbf). (DTWcxx . . $ DTW# me);
95
96 void DTW_pathQueryRecodecxx . . $ DTW_pathQueryRecode(1effd30d7a74ffbf). (DTWcxx . . $ DTW# me);
97
98 void DTW_drawDistancesAlongPathcxx . . $ DTW_drawDistancesAlongPath(5f4953c8558cdc27). (DTWcxx . . $ DTW# me, Graphicscxx . . $ Graphics# g, double xmin, double xmax, double dmin, double dmax, bool garnish);
99
100 void DTW_Sounds_drawcxx . . $ DTW_Sounds_draw(97171f0d49a5d1e1). (DTWcxx . . $ DTW# me, Soundcxx . . $ Sound# yy, Soundcxx . . $ Sound# xx, Graphicscxx . . $ Graphics# g, double xmin, double xmax,
101 double ymin, double ymax, bool garnish);
102
103 void DTW_Sounds_drawWarpXcxx . . $ DTW_Sounds_drawWarpX(e4c95a0d2ec92c03). (DTWcxx . . $ DTW# me, Soundcxx . . $ Sound# yy, Soundcxx . . $ Sound# xx, Graphicscxx . . $ Graphics# g, double xmin, double xmax,
104 double ymin, double ymax, double tx, bool garnish);
105
106 autoPolygoncxx . . $ autoPolygon# DTW_to_Polygoncxx . . $ DTW_to_Polygon(57d3a1deeef0f568). (DTWcxx . . $ DTW# me, double band, int slope);
107
108 void DTW_Polygon_findPathInsidecxx . . $ DTW_Polygon_findPathInside(df18308236acd980). (DTWcxx . . $ DTW# me, Polygoncxx . . $ Polygon# thee, int localSlope, autoMatrixcxx . . $ autoMatrix# *cumulativeDists);
109
110 autoMatrixcxx . . $ autoMatrix# DTW_to_Matrix_distancescxx . . $ DTW_to_Matrix_distances(1f5473e394883f73). (DTWcxx . . $ DTW# me);
111
112 autoMatrixcxx . . $ autoMatrix# DTW_to_Matrix_cumulativeDistancescxx . . $ DTW_to_Matrix_cumulativeDistances(2fdd3ebacda56566). (DTWcxx . . $ DTW# me, double sakoeChibaBand, int slope);
113
114 autoMatrixcxx . . $ autoMatrix# DTW_Polygon_to_Matrix_cumulativeDistancescxx . . $ DTW_Polygon_to_Matrix_cumulativeDistances(9b7d95787d770d89). (DTWcxx . . $ DTW# me, Polygoncxx . . $ Polygon# thee, int localSlope);
115
116 autoDTWcxx . . $ autoDTW# Matrices_to_DTWcxx . . $ Matrices_to_DTW(f5b87c2dcdd95520). (Matrixcxx . . $ Matrix# me, Matrixcxx . . $ Matrix# thee, bool matchStart, bool matchEnd, int slope, double metric);
117
118 autoDTWcxx . . $ autoDTW# Spectrograms_to_DTWcxx . . $ Spectrograms_to_DTW(c41ee0357e90fdaa). (Spectrogramcxx . . $ Spectrogram# me, Spectrogramcxx . . $ Spectrogram# thee, bool matchStart, bool matchEnd, int slope, double metric);
119
120 autoDTWcxx . . $ autoDTW# Pitches_to_DTWcxx . . $ Pitches_to_DTW(ec88775ba582cd9c). (Pitchcxx . . $ Pitch# me, Pitchcxx . . $ Pitch# thee, double vuv_costs, double time_weight, bool matchStart, bool matchEnd, int slope);
121
122 autoDurationTiercxx . . $ autoDurationTier# DTW_to_DurationTiercxx . . $ DTW_to_DurationTier(c4384e6c9200962d). (DTWcxx . . $ DTW# me);
123
124 void DTW_Matrix_replacecxx . . $ DTW_Matrix_replace(460a9e47324bd9e1). (DTWcxx . . $ DTW# me, Matrixcxx . . $ Matrix# thee);
125
126 #endif /* _DTW_h_ */