private static void subset_distance_test() //****************************************************************************80 // // Purpose: // // SUBSET_DISTANCE_TEST tests SUBSET_DISTANCE. // // Licensing: // // This code is distributed under the GNU LGPL license. // // Modified: // // 08 January 2016 // // Author: // // John Burkardt // { Console.WriteLine(""); Console.WriteLine("SUBSET_DISTANCE_TEST"); Console.WriteLine(" SUBSET_DISTANCE returns the distance between two subsets."); Console.WriteLine(""); const int n = 5; int seed = 123456789; int[] s1 = Subset.subset_random(n, ref seed); typeMethods.i4vec_transpose_print(n, s1, " Subset S1:"); int[] s2 = Subset.subset_random(n, ref seed); typeMethods.i4vec_transpose_print(n, s2, " Subset S2:"); int distance = Subset.subset_distance(n, s1, s2); Console.WriteLine(""); Console.WriteLine(" Distance = " + distance + ""); }