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