Class SVC_Q

  • All Implemented Interfaces:
    QMatrix

    public class SVC_Q
    extends Kernel
    Q matrix used by CSVC and NuSVC classification.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] y  
      • Fields inherited from class elki.svm.qmatrix.Kernel

        x
    • Constructor Summary

      Constructors 
      Constructor Description
      SVC_Q​(DataSet x, byte[] y)  
    • 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface elki.svm.qmatrix.QMatrix

        get_Q
    • Field Detail

      • y

        private byte[] y
    • 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 interface QMatrix
        Overrides:
        similarity in class Kernel
        Parameters:
        i - First object
        j - 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 interface QMatrix
        Overrides:
        swap_index in class Kernel
        Parameters:
        i - First entry
        j - Second entry