edu.berkeley.compbio.jlibsvm.kernel
Class PolynomialKernel

java.lang.Object
  extended by edu.berkeley.compbio.jlibsvm.kernel.GammaKernel<SparseVector>
      extended by edu.berkeley.compbio.jlibsvm.kernel.PolynomialKernel
All Implemented Interfaces:
KernelFunction<SparseVector>

public class PolynomialKernel
extends GammaKernel<SparseVector>

Version:
$Id$
Author:
David Soergel

Field Summary
 float coef0
           
 int degree
           
 
Fields inherited from class edu.berkeley.compbio.jlibsvm.kernel.GammaKernel
gamma
 
Constructor Summary
PolynomialKernel(int degree, float gamma, float coef0)
           
 
Method Summary
 double evaluate(SparseVector x, SparseVector y)
           
 java.lang.String toString()
           
 
Methods inherited from class edu.berkeley.compbio.jlibsvm.kernel.GammaKernel
getGamma, setGamma
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

degree

public int degree

coef0

public float coef0
Constructor Detail

PolynomialKernel

public PolynomialKernel(int degree,
                        float gamma,
                        float coef0)
Method Detail

toString

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

evaluate

public double evaluate(SparseVector x,
                       SparseVector y)


Copyright © 2008-2010 Brenner Lab, UC Berkeley. All Rights Reserved.