edu.udo.cs.myRVM.Kernel
Class KernelBasisFunction

java.lang.Object
  extended by edu.udo.cs.myRVM.Kernel.KernelBasisFunction

public class KernelBasisFunction
extends java.lang.Object

A basis function for kernels.

Version:
$Id: KernelBasisFunction.java,v 1.4 2006/08/03 14:39:37 ingomierswa Exp $
Author:
Piotr Kasprzak, Ingo Mierswa

Field Summary
protected  int dim
          Dimension of the basis vector (= dimension of input vectors)
protected  Kernel kernel
          The kernel to be used as a basis
protected  double[] y
          Vector
 
Constructor Summary
private KernelBasisFunction()
          Constructor(s)
  KernelBasisFunction(Kernel kernel)
           
  KernelBasisFunction(Kernel kernel, double[] y_vector)
           
 
Method Summary
 double eval(double[] x)
          Evaluate KernelBasisFunction
 double[] getBasisVector()
          Get basis vector
static KernelBasisFunction readKernel(java.io.ObjectInputStream in)
          Read KernelBasisFunction-data from stream
 void writeKernel(java.io.ObjectOutputStream out)
          Write KernelBasisFunction-data to stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dim

protected int dim
Dimension of the basis vector (= dimension of input vectors)


y

protected double[] y
Vector


kernel

protected Kernel kernel
The kernel to be used as a basis

Constructor Detail

KernelBasisFunction

private KernelBasisFunction()
Constructor(s)


KernelBasisFunction

public KernelBasisFunction(Kernel kernel,
                           double[] y_vector)

KernelBasisFunction

public KernelBasisFunction(Kernel kernel)
Method Detail

eval

public double eval(double[] x)
Evaluate KernelBasisFunction


getBasisVector

public double[] getBasisVector()
Get basis vector


writeKernel

public void writeKernel(java.io.ObjectOutputStream out)
                 throws java.io.IOException
Write KernelBasisFunction-data to stream

Throws:
java.io.IOException


readKernel

public static KernelBasisFunction readKernel(java.io.ObjectInputStream in)
                                      throws java.io.IOException
Read KernelBasisFunction-data from stream

Throws:
java.io.IOException



Copyright © 2001-2006