public class Hypersecant extends java.lang.Object implements IMercerKernel<double[]>
| Constructor and Description |
|---|
Hypersecant(double gamma)
Constructs a new Hyperbolic Secant Kernel
|
| Modifier and Type | Method and Description |
|---|---|
double |
Function(double[] x,
double[] y)
The kernel function.
|
double |
getGamma()
Gets the gamma value for the kernel.
|
void |
setGamma(double gamma)
Sets the gamma value for the kernel.
|
public Hypersecant(double gamma)
gamma - Gamma value for the kernel.public double getGamma()
public void setGamma(double gamma)
gamma - Gamma value.public double Function(double[] x,
double[] y)
IMercerKernelFunction in interface IMercerKernel<double[]>x - Vector x in input space.y - Vector