Class SigmoidalKernel

  • All Implemented Interfaces:
    java.io.Serializable, Kernel

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

      Constructors 
      Constructor Description
      SigmoidalKernel​(double a, double b)  
    • 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

      • SigmoidalKernel

        public SigmoidalKernel​(double a,
                               double b)
    • 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
        Parameters:
        A - The first pattern to calculate the kernel
        B - The second pattern to calculate the kernel
        Returns:
        A double with the value of the calculated kernel