Package elki.svm.qmatrix
Class SVC_Q
- java.lang.Object
-
- elki.svm.qmatrix.Kernel
-
- elki.svm.qmatrix.SVC_Q
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
similarity(int i, int j)
(Slow) compute the similarity (not distance) of objects i and j.void
swap_index(int i, int j)
Reorganize the data by swapping two entries.-
Methods inherited from class elki.svm.qmatrix.Kernel
get_QD, initialize
-
-
-
-
Constructor Detail
-
SVC_Q
public SVC_Q(DataSet x, byte[] y)
-
-
Method Detail
-
similarity
public double similarity(int i, int j)
Description copied from interface:QMatrix
(Slow) compute the similarity (not distance) of objects i and j.If you need many, use
QMatrix.get_Q(int, int, float[])
instead.- Specified by:
similarity
in interfaceQMatrix
- Overrides:
similarity
in classKernel
- Parameters:
i
- First objectj
- Second object- Returns:
- Similarity
-
swap_index
public void swap_index(int i, int j)
Description copied from interface:QMatrix
Reorganize the data by swapping two entries.This also must modify the QD array!
- Specified by:
swap_index
in interfaceQMatrix
- Overrides:
swap_index
in classKernel
- Parameters:
i
- First entryj
- Second entry
-
-