pt.tumba.ngram.svm
Class SVCQ
java.lang.Object
  
pt.tumba.ngram.svm.Kernel
      
pt.tumba.ngram.svm.SVCQ
 class SVCQ
- extends Kernel
 
Inner class representing a Kernel matrix for Support Vector classification.
 
 
| 
Method Summary | 
(package private)  float[] | 
getQ(int i,
     int len)
 
          Return one column of the Kernel matrix. | 
(package private)  void | 
swapIndex(int i,
          int j)
 
          Swap two nodes of the Kernel matrix. | 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
y
private final byte[] y
cache
private final Cache cache
SVCQ
SVCQ(SVMProblem prob,
     SVMParameter param,
     byte[] y_)
getQ
float[] getQ(int i,
             int len)
- Description copied from class: 
Kernel 
- Return one column of the Kernel matrix.
- Specified by:
 getQ in class Kernel
 
- Parameters:
 i - The column of the kernel matrix.len - The nu
- Returns:
 - One column of the Kernel matrix.
 
 
 
swapIndex
void swapIndex(int i,
               int j)
- Description copied from class: 
Kernel 
- Swap two nodes of the Kernel matrix.
- Overrides:
 swapIndex in class Kernel