|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aliasi.matrix.GaussianRadialBasisKernel
public class GaussianRadialBasisKernel
A 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 Summary | |
|---|---|
GaussianRadialBasisKernel(double radius)
Construct a Gaussian radial basis kernel with the specified radius of influence. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GaussianRadialBasisKernel(double radius)
radius - The radius of influence for the kernel.| Method Detail |
|---|
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.public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||