示例#1
0
        /// <summary>
        /// Calculates the DTW Measure between two data points
        /// </summary>
        /// <param name="X">An array with the values of an object or datapoint</param>
        /// <param name="Y">An array with the values of an object or datapoint</param>
        /// <returns>Returns the DTW Measure Between Points X and Points Y</returns>
        public static double DtwDistance(double[] X, double[] Y)
        {
            SimpleDTW dtw = new SimpleDTW(X, Y);

            dtw.computeDTW();
            return(dtw.getSum());
        }
示例#2
0
 /// <summary>
 /// Calculates the DTW Measure between two data points
 /// </summary>
 /// <param name="X">An array with the values of an object or datapoint</param>
 /// <param name="Y">An array with the values of an object or datapoint</param>
 /// <returns>Returns the DTW Measure Between Points X and Points Y</returns>
 public static double DtwDistance(double[] X, double[] Y)
 {
     SimpleDTW dtw = new SimpleDTW(X, Y);
     dtw.computeDTW();
     return dtw.getSum();
 }