Package weka.clusterers
Class Cobweb.CNode
- java.lang.Object
-
- weka.clusterers.Cobweb.CNode
-
- All Implemented Interfaces:
java.io.Serializable,RevisionHandler
- Enclosing class:
- Cobweb
public class Cobweb.CNode extends java.lang.Object implements java.io.Serializable, RevisionHandler
Inner class handling node operations for Cobweb.- See Also:
Serializable, Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetRevision()Returns the revision string.
-
-
-
Constructor Detail
-
CNode
public CNode(int numAttributes)
Creates an emptyCNodeinstance.- Parameters:
numAttributes- the number of attributes in the data
-
CNode
public CNode(int numAttributes, Instance leafInstance)Creates a new leafCNodeinstance.- Parameters:
numAttributes- the number of attributes in the dataleafInstance- the instance to store at this leaf
-
-
Method Detail
-
getRevision
public java.lang.String getRevision()
Returns the revision string.- Specified by:
getRevisionin interfaceRevisionHandler- Returns:
- the revision
-
-