コード例 #1
0
        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;
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }