Package weka.clusterers

# Class Cobweb.CNode

java.lang.Object
weka.clusterers.Cobweb.CNode

All Implemented Interfaces:
  `Serializable`, `RevisionHandler`

Enclosing class:
  Cobweb

public class Cobweb.CNode extends Object implements Serializable, RevisionHandler
Inner class handling node operations for Cobweb.

See Also:
  - `Serializable`
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CNode(int numAttributes)`
  Creates an empty `CNode` instance.
  `CNode(int numAttributes, Instance leafInstance)`
  Creates a new leaf `CNode` instance.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getRevision()`
  Returns the revision string.

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### CNode

    public CNode(int numAttributes)
    Creates an empty `CNode` instance.
    Parameters:
      `numAttributes` - the number of attributes in the data

  - ### CNode

    public CNode(int numAttributes, Instance leafInstance)
    Creates a new leaf `CNode` instance.
    Parameters:
      `numAttributes` - the number of attributes in the data
      `leafInstance` - the instance to store at this leaf

- ## Method Details

  - ### getRevision

    public String getRevision()
    Returns the revision string.
    Specified by:
      `getRevision` in interface `RevisionHandler`
    Returns:
      the revision