edu.udo.cs.myRVM.Kernel
Class KernelRadial

java.lang.Object
  extended by edu.udo.cs.myRVM.Kernel.Kernel
      extended by edu.udo.cs.myRVM.Kernel.KernelRadial
Direct Known Subclasses:
KernelCauchy, KernelLaplace, KernelPoly

public class KernelRadial
extends Kernel

Radial basis function (rbf) kernel: K(x, y) = exp(-lengthScale^{-2} * ||x - y||^2)

Version:
$Id: KernelRadial.java,v 1.7 2006/09/30 00:05:31 ingomierswa Exp $
Author:
Piotr Kasprzak

Field Summary
protected  double lengthScale
          LengthScale parameter
 
Constructor Summary
KernelRadial()
           
KernelRadial(double lengthScale)
          Constructor(s)
 
Method Summary
 double eval(double[] x, double[] y)
          evaluate kernel
 void readKernelData(java.io.ObjectInputStream in)
          Read kernel from stream
 java.lang.String toString()
           
 void writeKernelData(java.io.ObjectOutputStream out)
          Write kernel to stream
 
Methods inherited from class edu.udo.cs.myRVM.Kernel.Kernel
norm2, readKernel, writeKernel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lengthScale

protected double lengthScale
LengthScale parameter

Constructor Detail

KernelRadial

public KernelRadial(double lengthScale)
Constructor(s)


KernelRadial

public KernelRadial()
Method Detail

eval

public double eval(double[] x,
                   double[] y)
evaluate kernel

Specified by:
eval in class Kernel


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

writeKernelData

public void writeKernelData(java.io.ObjectOutputStream out)
                     throws java.io.IOException
Write kernel to stream

Specified by:
writeKernelData in class Kernel
Throws:
java.io.IOException


readKernelData

public void readKernelData(java.io.ObjectInputStream in)
                    throws java.io.IOException
Read kernel from stream

Specified by:
readKernelData in class Kernel
Throws:
java.io.IOException



Copyright © 2001-2006