pt.tumba.ngram.svm
Class ONECLASSQ
java.lang.Object
pt.tumba.ngram.svm.Kernel
pt.tumba.ngram.svm.ONECLASSQ
class ONECLASSQ
- extends Kernel
Inner class representing a Kernel matrix for SVM Distribution Estimation.
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 |
cache
private final Cache cache
ONECLASSQ
ONECLASSQ(SVMProblem prob,
SVMParameter param)
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