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

Class Polynomial

    • Constructor Summary

      Constructors 
      Constructor and Description
      Polynomial()
      Constructs a new Polynomial Kernel.
      Polynomial(int degree)
      Constructs a new Polynomial Kernel.
      Polynomial(int degree, double constant)
      Constructs a new Polynomial Kernel.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double Function(double[] x, double[] y)
      The kernel function.
      double getConstant()
      Get the polynomial constant term.
      int getDegree()
      Get the degree of the polynomial kernel.
      void setConstant(double constant)
      Set the polynomial constant term.
      void setDegree(int degree)
      Set the degree of the polynomial kernel.
      • Methods inherited from class java.lang.Object

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

      • Polynomial

        public Polynomial()
        Constructs a new Polynomial Kernel.
      • Polynomial

        public Polynomial(int degree)
        Constructs a new Polynomial Kernel.
        Parameters:
        degree - Polynomial degree.
      • Polynomial

        public Polynomial(int degree,
                          double constant)
        Constructs a new Polynomial Kernel.
        Parameters:
        degree - Polynomial degree.
        constant - Polynomial constant term.
    • Method Detail

      • getDegree

        public int getDegree()
        Get the degree of the polynomial kernel.
        Returns:
        Degree.
      • setDegree

        public void setDegree(int degree)
        Set the degree of the polynomial kernel.
        Parameters:
        degree - Degree.
      • getConstant

        public double getConstant()
        Get the polynomial constant term.
        Returns:
        Polynomial constant term.
      • setConstant

        public void setConstant(double constant)
        Set the polynomial constant term.
        Parameters:
        constant - Constant term.
      • Function

        public double Function(double[] x,
                               double[] y)
        Description copied from interface: IMercerKernel
        The 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.