Class KernelType

    • Method Detail

      • getDescription

        public final String getDescription()
        Returns the "description" attribute for the PMML kernel type element.
        Returns:
        the "description" attribute for the PMML kernel type element.
      • setDescription

        public final void setDescription​(String description)
        Sets the "description" attribute for the PMML kernel type element.
        Parameters:
        description - the "description" attribute for the PMML kernel type element.
      • compute

        public abstract double compute​(DoubleValuedIterator it1,
                                       DoubleValuedIterator it2)
        Computes the kernel function of the two vectors.
        Parameters:
        it1 - An iterator over the first vector
        it2 - An iterator over the second vector.
        Returns:
        the kernel function of the two vectors.