public class DoubleKDTreeEnsemble extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DoubleKDTreeEnsemble.DoubleKDTreeNode
An internal node of the KDTree
|
Modifier and Type | Field and Description |
---|---|
double[][] |
pnts
The underlying data array
|
DoubleKDTreeEnsemble.DoubleKDTreeNode[] |
trees
The tree roots
|
Constructor and Description |
---|
DoubleKDTreeEnsemble(double[][] pnts)
Construct a DoubleKDTreeEnsemble with the provided data,
using the default of 8 trees.
|
DoubleKDTreeEnsemble(double[][] pnts,
int ntrees)
Construct a DoubleKDTreeEnsemble with the provided data and
number of trees.
|
DoubleKDTreeEnsemble(double[][] pnts,
int ntrees,
int seed)
Construct a DoubleKDTreeEnsemble with the provided data and
number of trees.
|
public final DoubleKDTreeEnsemble.DoubleKDTreeNode[] trees
public final double[][] pnts
public DoubleKDTreeEnsemble(double[][] pnts)
pnts
- the data arraypublic DoubleKDTreeEnsemble(double[][] pnts, int ntrees)
pnts
- the data arrayntrees
- the number of KDTrees in the ensemblepublic DoubleKDTreeEnsemble(double[][] pnts, int ntrees, int seed)
pnts
- the data arrayntrees
- the number of KDTrees in the ensembleseed
- the seed for the random number generator used in
tree construction