dragon.ir.classification.multiclass
Class AbstractCodeMatrix

java.lang.Object
  |
  +--dragon.ir.classification.multiclass.AbstractCodeMatrix
All Implemented Interfaces:
CodeMatrix, java.io.Serializable
Direct Known Subclasses:
AllPairCodeMatrix, OVACodeMatrix

public abstract class AbstractCodeMatrix
extends java.lang.Object
implements CodeMatrix, java.io.Serializable

Abstract Code Matrix

Copyright: Copyright (c) 2005

Company: IST, Drexel University

Version:
1.0
Author:
Davis Zhou
See Also:
Serialized Form

Field Summary
protected  int classifierNum
           
protected  int classNum
           
 
Constructor Summary
AbstractCodeMatrix(int classNum)
           
 
Method Summary
 int getClassifierNum()
          Gets the number of binary classifiers
 int getClassNum()
          Gets the number of categories
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface dragon.ir.classification.multiclass.CodeMatrix
getCode, setClassNum
 

Field Detail

classNum

protected int classNum

classifierNum

protected int classifierNum
Constructor Detail

AbstractCodeMatrix

public AbstractCodeMatrix(int classNum)
Method Detail

getClassNum

public int getClassNum()
Description copied from interface: CodeMatrix
Gets the number of categories

Specified by:
getClassNum in interface CodeMatrix
Returns:
the number of categories

getClassifierNum

public int getClassifierNum()
Description copied from interface: CodeMatrix
Gets the number of binary classifiers

Specified by:
getClassifierNum in interface CodeMatrix
Returns:
the number of binary classifiers