Package elki.index.tree.betula
Class CFNode<L extends ClusterFeature>
- java.lang.Object
-
- elki.index.tree.betula.CFNode<L>
-
- Type Parameters:
L- Cluster feature type
- All Implemented Interfaces:
AsClusterFeature
public class CFNode<L extends ClusterFeature> extends java.lang.Object implements AsClusterFeature
Interface for TreeNode- Since:
- 0.8.0
- Author:
- Andreas Lang
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int i, AsClusterFeature node)Add a subtree.booleanadd(AsClusterFeature node)Add a subtreeintcapacity()Get the node capacity.LgetCF()Get as clustering feature.AsClusterFeaturegetChild(int i)Get CF from Index ivoidsetChild(int i, AsClusterFeature cf)Set child with index i to CF cfbooleansetChild(AsClusterFeature node)Add a child without statistics
-
-
-
Field Detail
-
cf
private L extends ClusterFeature cf
Cluster feature
-
children
private java.lang.Object[] children
Children of the TreeNode
-
-
Constructor Detail
-
CFNode
public CFNode(L cf, int capacity)
Constructor- Parameters:
capacity- Fanout of the Tree
-
-
Method Detail
-
getCF
public L getCF()
Description copied from interface:AsClusterFeatureGet as clustering feature.- Specified by:
getCFin interfaceAsClusterFeature- Returns:
- Clustering feature
-
setChild
public void setChild(int i, AsClusterFeature cf)Set child with index i to CF cf- Parameters:
i- Indexcf- Clustering Feature
-
setChild
public boolean setChild(AsClusterFeature node)
Add a child without statistics- Parameters:
node- child- Returns:
- success
-
getChild
public AsClusterFeature getChild(int i)
Get CF from Index i- Parameters:
i- Index- Returns:
- CF
-
add
public boolean add(AsClusterFeature node)
Add a subtree- Parameters:
node- Subtree- Returns:
- success
-
add
public void add(int i, AsClusterFeature node)Add a subtree.- Parameters:
i- Indexnode- Tree node
-
capacity
public int capacity()
Get the node capacity.- Returns:
- Node capacity
-
-