public interface RegTree
extends java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
int |
getLeafIndex(FVec feat)
Retrieves nodes from root to leaf and returns leaf index.
|
void |
getLeafPath(FVec feat,
java.lang.StringBuilder sb)
Retrieves nodes from root to leaf and returns path to leaf.
|
float |
getLeafValue(FVec feat,
int root_id)
Retrieves nodes from root to leaf and returns leaf value.
|
RegTreeNode[] |
getNodes() |
int getLeafIndex(FVec feat)
feat - feature vectorvoid getLeafPath(FVec feat, java.lang.StringBuilder sb)
feat - feature vectorsb - output param, will write path path to leaf into this bufferfloat getLeafValue(FVec feat, int root_id)
feat - feature vectorroot_id - starting root indexRegTreeNode[] getNodes()