public class IntKDTreeEnsemble extends Object
Modifier and Type | Class and Description |
---|---|
static class |
IntKDTreeEnsemble.IntKDTreeNode
An internal node of the KDTree
|
Modifier and Type | Field and Description |
---|---|
int[][] |
pnts
The underlying data array
|
IntKDTreeEnsemble.IntKDTreeNode[] |
trees
The tree roots
|
Constructor and Description |
---|
IntKDTreeEnsemble(int[][] pnts)
Construct a IntKDTreeEnsemble with the provided data,
using the default of 8 trees.
|
IntKDTreeEnsemble(int[][] pnts,
int ntrees)
Construct a IntKDTreeEnsemble with the provided data and
number of trees.
|
IntKDTreeEnsemble(int[][] pnts,
int ntrees,
int seed)
Construct a IntKDTreeEnsemble with the provided data and
number of trees.
|
public final IntKDTreeEnsemble.IntKDTreeNode[] trees
public final int[][] pnts
public IntKDTreeEnsemble(int[][] pnts)
pnts
- the data arraypublic IntKDTreeEnsemble(int[][] pnts, int ntrees)
pnts
- the data arrayntrees
- the number of KDTrees in the ensemblepublic IntKDTreeEnsemble(int[][] 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