edu.udo.cs.myRVM.Kernel
Class KernelPoly

java.lang.Object
  extended by edu.udo.cs.myRVM.Kernel.Kernel
      extended by edu.udo.cs.myRVM.Kernel.KernelRadial
          extended by edu.udo.cs.myRVM.Kernel.KernelPoly

public class KernelPoly
extends KernelRadial

Laplace kernel: K(x, y) = (lengthScale^{-2} * (x * y) + bias)^order

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

Field Summary
protected  double bias
          Bias
protected  double degree
          Polynomial order
 
Fields inherited from class edu.udo.cs.myRVM.Kernel.KernelRadial
lengthScale
 
Constructor Summary
KernelPoly()
          Constructor(s)
KernelPoly(double lengthScale, double bias, double degree)
           
 
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

degree

protected double degree
Polynomial order


bias

protected double bias
Bias

Constructor Detail

KernelPoly

public KernelPoly()
Constructor(s)


KernelPoly

public KernelPoly(double lengthScale,
                  double bias,
                  double degree)
Method Detail

eval

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

Overrides:
eval in class KernelRadial


toString

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

writeKernelData

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

Overrides:
writeKernelData in class KernelRadial
Throws:
java.io.IOException


readKernelData

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

Overrides:
readKernelData in class KernelRadial
Throws:
java.io.IOException



Copyright © 2001-2006