weka.classifiers.meta
Class MultiClassClassifier.Code

java.lang.Object
  extended byweka.classifiers.meta.MultiClassClassifier.Code
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MultiClassClassifier.ExhaustiveCode, MultiClassClassifier.RandomCode, MultiClassClassifier.StandardCode
Enclosing class:
MultiClassClassifier

private abstract class MultiClassClassifier.Code
extends java.lang.Object
implements java.io.Serializable

Interface for the code constructors


Field Summary
protected  boolean[][] m_Codebits
          Subclasses must allocate and fill these.
 
Constructor Summary
private MultiClassClassifier.Code()
           
 
Method Summary
 java.lang.String getIndices(int which)
          Returns the indices of the values set to true for this code, using 1-based indexing (for input to Range).
 int size()
          Returns the number of codes.
 java.lang.String toString()
          Returns a human-readable representation of the codes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_Codebits

protected boolean[][] m_Codebits
Subclasses must allocate and fill these. First dimension is number of codes. Second dimension is number of classes.

Constructor Detail

MultiClassClassifier.Code

private MultiClassClassifier.Code()
Method Detail

size

public int size()
Returns the number of codes.


getIndices

public java.lang.String getIndices(int which)
Returns the indices of the values set to true for this code, using 1-based indexing (for input to Range).


toString

public java.lang.String toString()
Returns a human-readable representation of the codes.