Class PolynomialKernel

  • All Implemented Interfaces:, Kernel

    public class PolynomialKernel
    extends java.lang.Object
    implements Kernel
    Polynomial Kernel. Follows the form: K(x,y) = (a * xy + c)^p, where a, b & p are parameters of this kernel.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructor Description
      PolynomialKernel​(double a, double c, double p)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double eval​(Matrix A, Matrix B)
      Evaluates a kernel between the two Vectors .
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PolynomialKernel

        public PolynomialKernel​(double a,
                                double c,
                                double p)
    • Method Detail

      • eval

        public double eval​(Matrix A,
                           Matrix B)
        Description copied from interface: Kernel
        Evaluates a kernel between the two Vectors .
        Specified by:
        eval in interface Kernel
        A - The first pattern to calculate the kernel
        B - The second pattern to calculate the kernel
        A double with the value of the calculated kernel