edu.udo.cs.myRVM.Kernel
Class KernelEpanechnikov

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

public class KernelEpanechnikov
extends Kernel

Returns the value of the Epanechnikov kernel of both examples.

Version:
$Id: KernelEpanechnikov.java,v 1.2 2006/08/28 12:32:58 ingomierswa Exp $
Author:
Ingo Mierswa

Field Summary
private  double degree
          The parameter degree of the Epanechnikov kernel.
private  double sigma
          The parameter sigma of the Epanechnikov kernel.
 
Constructor Summary
KernelEpanechnikov()
           
KernelEpanechnikov(double sigma, double degree)
          Constructor(s)
 
Method Summary
 double eval(double[] x, double[] y)
          Evaluate kernel
 void readKernelData(java.io.ObjectInputStream in)
           
 java.lang.String toString()
           
 void writeKernelData(java.io.ObjectOutputStream out)
           
 
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

sigma

private double sigma
The parameter sigma of the Epanechnikov kernel.


degree

private double degree
The parameter degree of the Epanechnikov kernel.

Constructor Detail

KernelEpanechnikov

public KernelEpanechnikov(double sigma,
                          double degree)
Constructor(s)


KernelEpanechnikov

public KernelEpanechnikov()
Method Detail

eval

public double eval(double[] x,
                   double[] y)
Description copied from class: Kernel
Evaluate kernel

Specified by:
eval in class Kernel


writeKernelData

public void writeKernelData(java.io.ObjectOutputStream out)
                     throws java.io.IOException
Specified by:
writeKernelData in class Kernel
Throws:
java.io.IOException

readKernelData

public void readKernelData(java.io.ObjectInputStream in)
                    throws java.io.IOException
Specified by:
readKernelData in class Kernel
Throws:
java.io.IOException

toString

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


Copyright © 2001-2006