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