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