Class SigmoidKernel

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  SigmoidKernel.Par
      Parameterization class.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double c
      Scaling factor c, bias theta
      private double theta
      Scaling factor c, bias theta
    • Constructor Summary

      Constructors 
      Constructor Description
      SigmoidKernel​(double c, double theta)
      Constructor.
    • Field Detail

      • c

        private final double c
        Scaling factor c, bias theta
      • theta

        private final double theta
        Scaling factor c, bias theta
    • Constructor Detail

      • SigmoidKernel

        public SigmoidKernel​(double c,
                             double theta)
        Constructor.
        Parameters:
        c - Scaling factor c.
        theta - Bias parameter theta.
    • 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