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 void
add(int i, AsClusterFeature node)
Add a subtree.boolean
add(AsClusterFeature node)
Add a subtreeint
capacity()
Get the node capacity.L
getCF()
Get as clustering feature.AsClusterFeature
getChild(int i)
Get CF from Index ivoid
setChild(int i, AsClusterFeature cf)
Set child with index i to CF cfboolean
setChild(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:AsClusterFeature
Get as clustering feature.- Specified by:
getCF
in 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
-
-