Class RationalQuadraticKernel

    • Field Detail

      • c

        private final double c
        Constant term c.
    • Constructor Detail

      • RationalQuadraticKernel

        public RationalQuadraticKernel​(double c)
        Constructor.
        Parameters:
        c - Constant term c.
    • 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