示例#1
0
		/**
		 * Creates the point with default values.
		 */
		public DtwPoint()
		{
			x = 0;
			y = 0;
			dLocal = 0.0;
			dAccumulated = 0.0;
			previous = null;
		}
 /**
  * Creates the point with default values.
  */
 public DtwPoint()
 {
     x            = 0;
     y            = 0;
     dLocal       = 0.0;
     dAccumulated = 0.0;
     previous     = null;
 }
示例#3
0
		/**
		 * Creates the point and associates it with given coordinates.
		 *
		 * @param x_ x coordinate in DTW array
		 * @param y_ y coordinate in DTW array
		 * @param distanceLocal value of local distance at point (x, y)
		 */
		public DtwPoint(int x_, int y_, double distanceLocal)
		{
			x = x_;
			y = y_;
			dLocal = distanceLocal;

			dAccumulated = 0.0;
			previous = null;

			if (0 == x || 0 == y)
				dAccumulated = dLocal;
		}
        /**
         * Creates the point and associates it with given coordinates.
         *
         * @param x_ x coordinate in DTW array
         * @param y_ y coordinate in DTW array
         * @param distanceLocal value of local distance at point (x, y)
         */
        public DtwPoint(int x_, int y_, double distanceLocal)
        {
            x      = x_;
            y      = y_;
            dLocal = distanceLocal;

            dAccumulated = 0.0;
            previous     = null;

            if (0 == x || 0 == y)
            {
                dAccumulated = dLocal;
            }
        }