public static class ShortKDTree.BBFMedianSplit extends Object implements ShortKDTree.SplitChooser
| Constructor and Description |
|---|
BBFMedianSplit()
Construct with the default maximum number of items per bucket
|
BBFMedianSplit(int maxBucketSize)
Construct with the given maximum number of items per bucket
|
| Modifier and Type | Method and Description |
|---|---|
IntShortPair |
chooseSplit(short[][] pnts,
IntArrayView inds,
int depth,
short[] minBounds,
short[] maxBounds)
Choose the dimension and discriminant on which to split the data.
|
public BBFMedianSplit()
public BBFMedianSplit(int maxBucketSize)
maxBucketSize - maximum number of items per bucketpublic IntShortPair chooseSplit(short[][] pnts, IntArrayView inds, int depth, short[] minBounds, short[] maxBounds)
ShortKDTree.SplitChooserchooseSplit in interface ShortKDTree.SplitChooserpnts - the raw datainds - the indices of the data under considerationdepth - the depth of the current data in the treeminBounds - the minimum boundsmaxBounds - the maximum bounds