Package | Description |
---|---|
org.openimaj.knn | |
org.openimaj.knn.approximate | |
org.openimaj.knn.pq | |
org.openimaj.ml.clustering | |
org.openimaj.ml.clustering.assignment.hard | |
org.openimaj.ml.clustering.assignment.soft | |
org.openimaj.ml.clustering.dbscan | |
org.openimaj.ml.clustering.incremental | |
org.openimaj.ml.clustering.kmeans |
K-Means in OpenIMAJ is designed to be both extremely fast and flexible.
|
org.openimaj.util.pair | |
org.openimaj.util.tree |
Modifier and Type | Method and Description |
---|---|
IntDoublePair |
DoubleNearestNeighboursExact.searchNN(double[] query) |
IntDoublePair |
LongNearestNeighboursExact.searchNN(long[] query) |
Modifier and Type | Method and Description |
---|---|
List<IntDoublePair> |
DoubleNearestNeighboursExact.searchKNN(double[] query,
int K) |
List<IntDoublePair> |
LongNearestNeighboursExact.searchKNN(long[] query,
int K) |
Modifier and Type | Method and Description |
---|---|
IntDoublePair |
DoubleNearestNeighboursKDTree.searchNN(double[] query) |
IntDoublePair |
LongNearestNeighboursKDTree.searchNN(long[] query) |
Modifier and Type | Method and Description |
---|---|
List<IntDoublePair> |
DoubleNearestNeighboursKDTree.searchKNN(double[] query,
int K) |
List<IntDoublePair> |
LongNearestNeighboursKDTree.searchKNN(long[] query,
int K) |
Modifier and Type | Method and Description |
---|---|
IntDoublePair |
DoubleADCNearestNeighbours.searchNN(double[] query) |
IntDoublePair |
IncrementalDoubleADCNearestNeighbours.searchNN(double[] query) |
IntDoublePair |
LongADCNearestNeighbours.searchNN(long[] query) |
IntDoublePair |
IncrementalLongADCNearestNeighbours.searchNN(long[] query) |
Modifier and Type | Method and Description |
---|---|
List<IntDoublePair> |
DoubleADCNearestNeighbours.searchKNN(double[] query,
int K) |
List<IntDoublePair> |
IncrementalDoubleADCNearestNeighbours.searchKNN(double[] query,
int K) |
List<IntDoublePair> |
LongADCNearestNeighbours.searchKNN(long[] query,
int K) |
List<IntDoublePair> |
IncrementalLongADCNearestNeighbours.searchKNN(long[] query,
int K) |
Modifier and Type | Method and Description |
---|---|
protected void |
DoubleADCNearestNeighbours.computeDistances(double[] fullQuery,
BoundedPriorityQueue<IntDoublePair> queue,
IntDoublePair wp) |
protected void |
DoubleSDCNearestNeighbours.computeDistances(double[] fullQuery,
BoundedPriorityQueue<IntDoublePair> queue,
IntDoublePair workingPair) |
protected void |
IncrementalDoubleADCNearestNeighbours.computeDistances(double[] fullQuery,
BoundedPriorityQueue<IntDoublePair> queue,
IntDoublePair wp) |
protected void |
LongSDCNearestNeighbours.computeDistances(long[] fullQuery,
BoundedPriorityQueue<IntDoublePair> queue,
IntDoublePair workingPair) |
protected void |
LongADCNearestNeighbours.computeDistances(long[] fullQuery,
BoundedPriorityQueue<IntDoublePair> queue,
IntDoublePair wp) |
protected void |
IncrementalLongADCNearestNeighbours.computeDistances(long[] fullQuery,
BoundedPriorityQueue<IntDoublePair> queue,
IntDoublePair wp) |
Modifier and Type | Method and Description |
---|---|
protected void |
DoubleADCNearestNeighbours.computeDistances(double[] fullQuery,
BoundedPriorityQueue<IntDoublePair> queue,
IntDoublePair wp) |
protected void |
DoubleSDCNearestNeighbours.computeDistances(double[] fullQuery,
BoundedPriorityQueue<IntDoublePair> queue,
IntDoublePair workingPair) |
protected void |
IncrementalDoubleADCNearestNeighbours.computeDistances(double[] fullQuery,
BoundedPriorityQueue<IntDoublePair> queue,
IntDoublePair wp) |
protected void |
LongSDCNearestNeighbours.computeDistances(long[] fullQuery,
BoundedPriorityQueue<IntDoublePair> queue,
IntDoublePair workingPair) |
protected void |
LongADCNearestNeighbours.computeDistances(long[] fullQuery,
BoundedPriorityQueue<IntDoublePair> queue,
IntDoublePair wp) |
protected void |
IncrementalLongADCNearestNeighbours.computeDistances(long[] fullQuery,
BoundedPriorityQueue<IntDoublePair> queue,
IntDoublePair wp) |
Modifier and Type | Method and Description |
---|---|
HardAssigner<double[],double[],IntDoublePair> |
DoubleCentroidsResult.defaultHardAssigner() |
HardAssigner<long[],double[],IntDoublePair> |
LongCentroidsResult.defaultHardAssigner() |
Modifier and Type | Method and Description |
---|---|
IntDoublePair |
KDTreeDoubleEuclideanAssigner.assignDistance(double[] data) |
IntDoublePair |
ExactDoubleAssigner.assignDistance(double[] data) |
IntDoublePair |
HierarchicalDoubleHardAssigner.assignDistance(double[] data) |
IntDoublePair |
HierarchicalLongHardAssigner.assignDistance(long[] data) |
IntDoublePair |
ExactLongAssigner.assignDistance(long[] data) |
IntDoublePair |
KDTreeLongEuclideanAssigner.assignDistance(long[] data) |
Modifier and Type | Field and Description |
---|---|
protected Map<CentroidsProvider<long[]>,HardAssigner<long[],double[],IntDoublePair>> |
HierarchicalLongPathAssigner.assigners |
protected Map<CentroidsProvider<double[]>,HardAssigner<double[],double[],IntDoublePair>> |
HierarchicalDoublePathAssigner.assigners |
Constructor and Description |
---|
State(int length,
RegionMode<IntDoublePair> regionMode) |
State(int length,
RegionMode<IntDoublePair> regionMode,
boolean noiseAsClusters) |
Modifier and Type | Method and Description |
---|---|
protected Map<Integer,IntDoublePair> |
IncrementalSparseClusterer.calculateStability(IndexClusters c1,
IndexClusters c2,
gnu.trove.set.TIntSet inactiveRows) |
Modifier and Type | Method and Description |
---|---|
HardAssigner<double[],double[],IntDoublePair> |
SphericalKMeansResult.defaultHardAssigner() |
HardAssigner<long[],double[],IntDoublePair> |
LongKMeans.Result.defaultHardAssigner() |
HardAssigner<double[],double[],IntDoublePair> |
DoubleKMeans.Result.defaultHardAssigner() |
Modifier and Type | Field and Description |
---|---|
static Comparator<IntDoublePair> |
IntDoublePair.FIRST_ITEM_ASCENDING_COMPARATOR
Comparator for comparing the first element of a
IntDoublePair in ascending order. |
static Comparator<IntDoublePair> |
IntDoublePair.FIRST_ITEM_DESCENDING_COMPARATOR
Comparator for comparing the first element of a
IntDoublePair in descending order. |
static Comparator<IntDoublePair> |
IntDoublePair.SECOND_ITEM_ASCENDING_COMPARATOR
Comparator for comparing the second element of a
IntDoublePair in ascending order. |
static Comparator<IntDoublePair> |
IntDoublePair.SECOND_ITEM_DESCENDING_COMPARATOR
Comparator for comparing the second element of a
IntDoublePair in descending order. |
Modifier and Type | Method and Description |
---|---|
static IntDoublePair |
IntDoublePair.pair(int a,
double b)
Create a pair from the given values.
|
Modifier and Type | Method and Description |
---|---|
static gnu.trove.list.array.TIntArrayList |
IntDoublePair.getFirst(Iterable<IntDoublePair> data)
Extract the first values from a list of pairs.
|
static gnu.trove.list.array.TDoubleArrayList |
IntDoublePair.getSecond(Iterable<IntDoublePair> data)
Extract the second values from a list of pairs.
|
Modifier and Type | Method and Description |
---|---|
IntDoublePair |
DoubleKDTree.SplitChooser.chooseSplit(double[][] pnts,
IntArrayView inds,
int depth,
double[] minBounds,
double[] maxBounds)
Choose the dimension and discriminant on which to split the data.
|
IntDoublePair |
DoubleKDTree.BasicMedianSplit.chooseSplit(double[][] pnts,
IntArrayView inds,
int depth,
double[] minBounds,
double[] maxBounds) |
IntDoublePair |
DoubleKDTree.BBFMedianSplit.chooseSplit(double[][] pnts,
IntArrayView inds,
int depth,
double[] minBounds,
double[] maxBounds) |
IntDoublePair |
DoubleKDTree.ApproximateBBFMedianSplit.chooseSplit(double[][] pnts,
IntArrayView inds,
int depth,
double[] minBounds,
double[] maxBounds) |
IntDoublePair |
DoubleKDTree.RandomisedBBFMeanSplit.chooseSplit(double[][] pnts,
IntArrayView inds,
int depth,
double[] minBounds,
double[] maxBounds) |
IntDoublePair |
DoubleKDTree.nearestNeighbour(double[] qu)
Nearest-neighbour search
|
IntDoublePair |
LongKDTree.nearestNeighbour(long[] qu)
Nearest-neighbour search
|
Modifier and Type | Method and Description |
---|---|
List<IntDoublePair> |
DoubleKDTree.nearestNeighbours(double[] qu,
int n)
Nearest-neighbour search
|
List<IntDoublePair> |
LongKDTree.nearestNeighbours(long[] qu,
int n)
Nearest-neighbour search
|