Class LinearKernel

  • All Implemented Interfaces:, Kernel

    public class LinearKernel
    extends java.lang.Object
    implements Kernel
    Implements a linear kernel based on the dot product.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructor Description
    • 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

      • LinearKernel

        public LinearKernel()
    • 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