public final class PolynomialKernelType extends KernelType
PolynomialKernelType
PMML element.Constructor and Description |
---|
PolynomialKernelType()
Creates a new
PolynomialKernelType initialized to defaults. |
Modifier and Type | Method and Description |
---|---|
double |
compute(DoubleValuedIterator it1,
DoubleValuedIterator it2)
Computes the kernel function of the two vectors.
|
double |
getCoef0()
Returns the value of the "coef0" attribute.
|
int |
getDegree()
Returns the value of the "degree" attribute.
|
double |
getGamma()
Returns the value of the "gamma" attribute.
|
PolynomialKernelType |
setCoef0(double coef0)
Sets the value of the "coef0" attribute.
|
PolynomialKernelType |
setDegree(int degree)
Sets the value of the "degree" attribute.
|
PolynomialKernelType |
setGamma(double gamma)
Sets the value of the "gamma" attribute.
|
getDescription, setDescription
public PolynomialKernelType()
PolynomialKernelType
initialized to defaults.public final double getGamma()
public final PolynomialKernelType setGamma(double gamma)
gamma
- the value of the "gamma" attribute.public final double getCoef0()
public final PolynomialKernelType setCoef0(double coef0)
coef0
- the value of the "coef0" attribute.public final int getDegree()
public final PolynomialKernelType setDegree(int degree)
degree
- the value of the "degree" attribute.public double compute(DoubleValuedIterator it1, DoubleValuedIterator it2)
KernelType
compute
in class KernelType
it1
- An iterator over the first vectorit2
- An iterator over the second vector.Copyright © 2021 Actian Corporation. All rights reserved.