Package | Description |
---|---|
org.apache.mahout.math |
Core base classes; Operations on primitive arrays such as sorting, partitioning and permuting.
|
org.apache.mahout.math.list |
Resizable lists holding objects or primitive data types such as int,
double, etc.
|
Modifier and Type | Method and Description |
---|---|
static void |
Sorting.mergeSort(int[] array,
int start,
int end,
IntComparator comp)
Perform a merge sort on a range of a int array using numerical order.
|
static void |
Sorting.mergeSort(int fromIndex,
int toIndex,
IntComparator c,
Swapper swapper)
Sorts the specified range of elements according to the order induced by the specified comparator.
|
static void |
Sorting.quickSort(int[] array,
int start,
int end,
IntComparator comp)
Sorts the specified range in the array in a specified order.
|
static void |
Sorting.quickSort(int start,
int end,
IntComparator comp,
Swapper swap)
Sorts some external data with QuickSort.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractIntList.mergeSortFromTo(int from,
int to,
IntComparator c)
Sorts the receiver according to the order induced by the specified comparator.
|
void |
AbstractIntList.quickSortFromTo(int from,
int to,
IntComparator c)
Sorts the receiver according to the order induced by the specified comparator.
|
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.