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