Class PolynomialKernel

    • Field Detail

      • DEFAULT_DEGREE

        public static final int DEFAULT_DEGREE
        The default degree.
        See Also:
        Constant Field Values
      • degree

        private final int degree
        Degree of the polynomial kernel function.
      • bias

        private final double bias
        Bias of the similarity function.
    • Constructor Detail

      • PolynomialKernel

        public PolynomialKernel​(int degree,
                                double bias)
        Constructor.
        Parameters:
        degree - Kernel degree
        bias - Bias offset
      • PolynomialKernel

        public PolynomialKernel​(int degree)
        Constructor.
        Parameters:
        degree - Kernel degree