Documentation of 'jsat.distributions.kernels.LinearKernel' Java class
LinearKernel
jsat.distributions.kernels

Class LinearKernel

    • Constructor Detail

      • LinearKernel

        public LinearKernel(double c)
        Creates a new Linear Kernel that computes the dot product and offsets it by a specified value
        Parameters:
        c - the positive bias term for the dot product
      • LinearKernel

        public LinearKernel()
        Creates a new Linear Kernel with an added bias term of 1
    • Method Detail

      • setC

        public void setC(double c)
        The positive bias term added to the result of the dot product
        Parameters:
        c - the added product term
      • getC

        public double getC()
        Returns the positive additive term
        Returns:
        the positive additive term
      • eval

        public double eval(Vec a,
                           Vec b)
        Description copied from interface: KernelTrick
        Evaluate this kernel function for the two given vectors.
        Parameters:
        a - the first vector
        b - the first vector
        Returns:
        the evaluation
      • toString

        public java.lang.String toString()
        Description copied from interface: KernelTrick
        A descriptive name for the type of KernelFunction
        Specified by:
        toString in interface KernelTrick
        Overrides:
        toString in class java.lang.Object
        Returns:
        a descriptive name for the type of KernelFunction

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.