Class DiagonalAddKernel

    • Method Detail

      • setLambda

        public void setLambda​(double l)
        Set the scale factor.
        Parameters:
        l - the new scale factor
      • getLambda

        public double getLambda()
        Retrieve the scale factor.
        Returns:
        the current scale factor
      • evaluate

        public double evaluate​(Object a,
                               Object b)
        Return the dot product of a, b.

        This is equal to k(a, b) + d(a, b) * ||class(a)|| / (||class||) where d(a, b) is zero if a != b, and 1 if a == b. class(a) is the set of all items in the same class as a. class is all items with a classification.