Class RadialBasisFunctionKernel

    • Field Detail

      • mgamma

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

      • RadialBasisFunctionKernel

        public RadialBasisFunctionKernel​(double gamma)
        Constructor.
        Parameters:
        gamma - Scaling parameter gamma
    • 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