pt.tumba.ngram.svm
Class ONECLASSQ

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

 class ONECLASSQ
extends Kernel

Inner class representing a Kernel matrix for SVM Distribution Estimation.


Field Summary
private  Cache cache
           
 
Constructor Summary
ONECLASSQ(SVMProblem prob, SVMParameter param)
           
 
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

cache

private final Cache cache
Constructor Detail

ONECLASSQ

ONECLASSQ(SVMProblem prob,
          SVMParameter param)
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