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