pt.tumba.ngram.svm
Class SVCQ

java.lang.Object
  extended by pt.tumba.ngram.svm.Kernel
      extended by pt.tumba.ngram.svm.SVCQ

 class SVCQ
extends Kernel

Inner class representing a Kernel matrix for Support Vector classification.


Field Summary
private  Cache cache
           
private  byte[] y
           
 
Constructor Summary
SVCQ(SVMProblem prob, SVMParameter param, byte[] y_)
           
 
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 pt.tumba.ngram.svm.Kernel
dot, kernelFunction, kernelFunction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

y

private final byte[] y

cache

private final Cache cache
Constructor Detail

SVCQ

SVCQ(SVMProblem prob,
     SVMParameter param,
     byte[] y_)
Method Detail

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