weka.classifiers.meta
Class MultiClassClassifier.ExhaustiveCode

java.lang.Object
  extended byweka.classifiers.meta.MultiClassClassifier.Code
      extended byweka.classifiers.meta.MultiClassClassifier.ExhaustiveCode
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
MultiClassClassifier

private class MultiClassClassifier.ExhaustiveCode
extends MultiClassClassifier.Code

Constructs an exhaustive code assignment


Field Summary
protected  boolean[][] m_Codebits
          Subclasses must allocate and fill these.
 
Constructor Summary
MultiClassClassifier.ExhaustiveCode(int numClasses)
           
 
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.ExhaustiveCode

public MultiClassClassifier.ExhaustiveCode(int numClasses)
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.