| 1 | /* DTW_def.h |
| 2 | * |
| 3 | * Copyright (C) 1993-2008 David Weenink |
| 4 | * |
| 5 | * This code is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or (at |
| 8 | * your option) any later version. |
| 9 | * |
| 10 | * This code is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | /* |
| 20 | djmw 19981207 |
| 21 | djmw 20020813 GPL header |
| 22 | djmw 20070216 Latest modification |
| 23 | */ |
| 24 | |
| 25 | #define ooSTRUCT DTW_Path |
| 26 | oo_DEFINE_STRUCT (DTW_Path) |
| 27 | |
| 28 | oo_INTEGER (x) |
| 29 | oo_INTEGER (y) |
| 30 | |
| 31 | oo_END_STRUCT (DTW_Path) |
| 32 | #undef ooSTRUCT |
| 33 | |
| 34 | |
| 35 | #define ooSTRUCT DTW_Path_Query |
| 36 | oo_DEFINE_STRUCT (DTW_Path_Query) |
| 37 | |
| 38 | oo_INTEGER (nx) |
| 39 | oo_INTEGER (ny) |
| 40 | oo_INTEGER (nxy) |
| 41 | oo_OBJECT (RealTier, 0, yfromx) |
| 42 | oo_OBJECT (RealTier, 0, xfromy) |
| 43 | |
| 44 | oo_END_STRUCT (DTW_Path_Query) |
| 45 | #undef ooSTRUCT |
| 46 | |
| 47 | |
| 48 | #define ooSTRUCT DTW |
| 49 | oo_DEFINE_CLASS (DTW, Matrix) |
| 50 | |
| 51 | oo_DOUBLE (weightedDistance) |
| 52 | oo_INTEGER (pathLength) |
| 53 | oo_STRUCTVEC (DTW_Path, path, pathLength) |
| 54 | |
| 55 | #if ! oo_READING && ! oo_WRITING && ! oo_COMPARING |
| 56 | oo_DOUBLE (wx) |
| 57 | oo_DOUBLE (wy) |
| 58 | oo_DOUBLE (wd) |
| 59 | oo_STRUCT (DTW_Path_Query, pathQuery) |
| 60 | #endif |
| 61 | |
| 62 | #if oo_READING |
| 63 | DTW_Path_Query_init (& pathQuery, ny, nx); |
| 64 | DTW_Path_recode (this); |
| 65 | #endif |
| 66 | |
| 67 | #if oo_DECLARING |
| 68 | void v1_info () |
| 69 | override; |
| 70 | #endif |
| 71 | |
| 72 | oo_END_CLASS (DTW) |
| 73 | #undef ooSTRUCT |
| 74 | |
| 75 | /* End of file DTW_def.h */ |