public Confidence(List <List <double> > data) { MonteCompare comparer = new MonteCompare(); StoParallelMergeSort <List <double> > mergeSort = new StoParallelMergeSort <List <double> >(comparer); mergeSort.Sort(data, false); this.data = data; }
public static void ParallelMergeSort <T>(this T[] list, IComparer <T> comparer, bool ascending = true) { StoParallelMergeSort <T> sorter = new StoParallelMergeSort <T>(comparer); sorter.Sort(list, ascending); }
public static void ParallelMergeSort <T>(this IList <T> list, Comparison <T> comparison, bool ascending = true) { StoParallelMergeSort <T> sorter = new StoParallelMergeSort <T>(comparison); sorter.Sort(list, ascending); }