Beispiel #1
0
        private double CompareChanges(RecordSet Current, RecordSet New)
        {

            Key k = Key.Build(1, Current.Columns.Count - 1);
            Current.Sort(k);
            New.Sort(k);

            double Distance = 0;
            for (int i = 0; i < Current.Count; i++)
            {

                for (int j = 0; j < Current.Columns.Count; j++)
                {

                    Distance += Math.Pow(Current[i][j].DOUBLE - New[i][j].DOUBLE, 2);

                }

            }

            return Distance;

        }