- java.lang.Object
-
- com.pervasive.datarush.analytics.svm.KernelType
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
LinearKernelType
,PolynomialKernelType
,RadialBasisKernelType
,SigmoidKernelType
public abstract class KernelType extends Object implements Serializable
Base class for the various SVM PMML kernel types.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract double
compute(DoubleValuedIterator it1, DoubleValuedIterator it2)
Computes the kernel function of the two vectors.String
getDescription()
Returns the "description" attribute for the PMML kernel type element.void
setDescription(String description)
Sets the "description" attribute for the PMML kernel type element.
-
-
-
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 vectorit2
- An iterator over the second vector.- Returns:
- the kernel function of the two vectors.
-
-