public class CountLeaves extends AbstractTreeFeature
id, keys, missingValuecontext| Constructor and Description |
|---|
CountLeaves() |
| Modifier and Type | Method and Description |
|---|---|
Serializable |
compute(TreeNode tree) |
String |
createFeatureKey(String inputKey) |
Integer |
getNumberOfLeaves(TreeNode tree) |
protected Integer |
max(Collection<Integer> input) |
getId, getKeys, getMissing, process, processTree, setId, setKeys, setMissingfinish, init, resetStatepublic String createFeatureKey(String inputKey)
createFeatureKey in interface TreeFeaturecreateFeatureKey in class AbstractTreeFeatureTreeFeature.createFeatureKey(java.lang.String)public Serializable compute(TreeNode tree)
compute in interface TreeFeaturecompute in class AbstractTreeFeatureprotected Integer max(Collection<Integer> input)
Copyright © 2018. All rights reserved.