DTW_def.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. djmw 19981207
  20. djmw 20020813 GPL header
  21. djmw 20070216 Latest modification
  22. */
  23. #define ooSTRUCT DTW_Path
  24. oo_DEFINE_STRUCT (DTW_Path)
  25. oo_INTEGER (x)
  26. oo_INTEGER (y)
  27. oo_END_STRUCT (DTW_Path)
  28. #undef ooSTRUCT
  29. #define ooSTRUCT DTW_Path_Query
  30. oo_DEFINE_STRUCT (DTW_Path_Query)
  31. oo_INTEGER (nx)
  32. oo_INTEGER (ny)
  33. oo_INTEGER (nxy)
  34. oo_OBJECT (RealTier, 0, yfromx)
  35. oo_OBJECT (RealTier, 0, xfromy)
  36. oo_END_STRUCT (DTW_Path_Query)
  37. #undef ooSTRUCT
  38. #define ooSTRUCT DTW
  39. oo_DEFINE_CLASS (DTW, Matrix)
  40. oo_DOUBLE (weightedDistance)
  41. oo_INTEGER (pathLength)
  42. oo_STRUCT_VECTOR (DTW_Path, path, pathLength)
  43. #if ! oo_READING && ! oo_WRITING
  44. oo_DOUBLE (wx)
  45. oo_DOUBLE (wy)
  46. oo_DOUBLE (wd)
  47. oo_STRUCT (DTW_Path_Query, pathQuery)
  48. #endif
  49. #if oo_READING
  50. DTW_Path_Query_init (& pathQuery, ny, nx);
  51. DTW_Path_recode (this);
  52. #endif
  53. #if oo_DECLARING
  54. void v_info ()
  55. override;
  56. #endif
  57. oo_END_CLASS (DTW)
  58. #undef ooSTRUCT
  59. /* End of file DTW_def.h */