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

Class Power

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


    public class Power
    extends java.lang.Object
    implements IMercerKernel<double[]>
    Power Kernel. Also known as the (Unrectified) Triangular Kernel.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      Power(double degree)
      Constructs a new Power 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 getDegree()
      Gets the kernel's degree.
      void setDegree(double degree)
      Sets the kernel's degree.
      • Methods inherited from class java.lang.Object

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

      • Power

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

      • getDegree

        public double getDegree()
        Gets the kernel's degree.
        Returns:
        Kernel's degree.
      • setDegree

        public void setDegree(double degree)
        Sets the kernel's degree.
        Parameters:
        degree - Kernel's degree.
      • 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.