Documentation of 'Catalano.Statistics.Kernels.Linear' Java class
Linear
Catalano.Statistics.Kernels

Class Linear

    • Constructor Summary

      Constructors 
      Constructor and Description
      Linear()
      Constructs a new Linear Kernel.
      Linear(double constant)
      Constructs a new Linear kernel.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double Function(double[] x, double[] y)
      Linear kernel function.
      double getConstant()
      Gets the kernel's intercept term.
      void setConstant(double value)
      Sets the kernel's intercept term.
      • Methods inherited from class java.lang.Object

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

      • Linear

        public Linear(double constant)
        Constructs a new Linear kernel.
        Parameters:
        constant - A constant intercept term. Default is 1.
      • Linear

        public Linear()
        Constructs a new Linear Kernel.
    • Method Detail

      • getConstant

        public double getConstant()
        Gets the kernel's intercept term.
        Returns:
        Kernel's intercept term.
      • setConstant

        public void setConstant(double value)
        Sets the kernel's intercept term.
        Parameters:
        value - Kernel's intercept term.
      • Function

        public double Function(double[] x,
                               double[] y)
        Linear kernel function.
        Specified by:
        Function in interface IMercerKernel<double[]>
        Parameters:
        x - Vector x in input space.
        y - Vector y in input space.
        Returns:
        Dot product in feature (kernel) space.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.