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

Class NormalizedPolynomial

  • All Implemented Interfaces:
    IMercerKernel<double[]>, java.io.Serializable


    public class NormalizedPolynomial
    extends java.lang.Object
    implements IMercerKernel<double[]>
    Normalized Polynomial Kernel.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      NormalizedPolynomial()
      Constructs a new Normalized Polynomial Kernel.
      NormalizedPolynomial(int degree)
      Constructs a new Normalized Polynomial Kernel.
      NormalizedPolynomial(int degree, double constant)
      Constructs a new Normalized 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

      • NormalizedPolynomial

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

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

        public NormalizedPolynomial(int degree,
                                    double constant)
        Constructs a new Normalized 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.