public double evaluate(VectorInstance x,double[] y) throws Exception {
  double dotProd=x.dotProduct(y);
  double z=m_gamma * dotProd + m_coef0;
  double a=Math.exp(z);
  double b=Math.exp(-z);
  return ((a - b) / (a + b));
}

public double evaluate ( VectorInstance x , double [ ] y ) throws Exception { double dotProd = x . dotProduct ( y ) ; double z = m_gamma * dotProd + m_coef0 ; double a = Math . exp ( z ) ; double b = Math . exp ( - z ) ; return ( ( a - b ) / ( a + b ) ) ; }
compute the result of the kernel evaluation on the supplied vectors
