public class GaussianRadialBasisKernel extends Object implements KernelFunction, Serializable
GaussianRadialBasisKernel provides a kernel based on
a Gaussian radial basis function with a fixed variance parameter.
As a kernel function, it unfolds into an infinite-dimension Hilbert
space.
The radial basis kernel function of radius r is
defined between vectors v1 and v2 as
follows:
whererbf(v1,v2) = exp(- r * distance(v1,v2)2)
distance(v1,v2) is the Euclidean distance,
as defined in the class documentation for EuclideanDistance.
In this formulation, the radius r is related to
the variance σ2 by:
r = 1/(2 * σ2)
For more information on the Gaussian radial basis kernel and applications, see:
| Constructor and Description |
|---|
GaussianRadialBasisKernel(double radius)
Construct a Gaussian radial basis kernel with the specified
radius of influence.
|
| Modifier and Type | Method and Description |
|---|---|
double |
proximity(Vector v1,
Vector v2)
Returns the result of applying this Guassian radial basis
kernel to the specified vectors.
|
String |
toString()
Returns a string-based representation of this kernel
function, including the kernel type and radius.
|
public GaussianRadialBasisKernel(double radius)
radius - The radius of influence for the kernel.public double proximity(Vector v1, Vector v2)
proximity in interface KernelFunctionproximity in interface Proximity<Vector>v1 - First vector.v2 - Second vector.IllegalArgumentException - If the vectors are not of the
same dimensionality.Copyright © 2019 Alias-i, Inc.. All rights reserved.