public static class LongKDTree.BasicMedianSplit extends Object implements LongKDTree.SplitChooser
| Constructor and Description |
|---|
BasicMedianSplit()
Construct with the default maximum number of items per bucket
|
BasicMedianSplit(int maxBucketSize)
Construct with the given maximum number of items per bucket
|
| Modifier and Type | Method and Description |
|---|---|
IntLongPair |
chooseSplit(long[][] pnts,
IntArrayView inds,
int depth,
long[] minBounds,
long[] maxBounds)
Choose the dimension and discriminant on which to split the data.
|
public BasicMedianSplit()
public BasicMedianSplit(int maxBucketSize)
maxBucketSize - maximum number of items per bucketpublic IntLongPair chooseSplit(long[][] pnts, IntArrayView inds, int depth, long[] minBounds, long[] maxBounds)
LongKDTree.SplitChooserchooseSplit in interface LongKDTree.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