Class LaplaceKernel

    • Field Detail

      • mgamma

        private final double mgamma
        Scaling factor mgamma. (= - 1/sigma)
    • Constructor Detail

      • LaplaceKernel

        public LaplaceKernel​(double sigma)
        Constructor.
        Parameters:
        sigma - Scaling parameter sigma (as in laplace kernel)
    • Method Detail

      • similarity

        public double similarity​(NumberVector o1,
                                 NumberVector o2)
        Description copied from interface: PrimitiveSimilarity
        Computes the similarity between two given DatabaseObjects according to this similarity function.
        Parameters:
        o1 - first DatabaseObject
        o2 - second DatabaseObject
        Returns:
        the similarity between two given DatabaseObjects according to this similarity function