public static Kernel createKernel(int kernelType){
switch (kernelType) {
case KERNEL_RADIAL:
    return new KernelRadial();
case KERNEL_POLYNOMIAL:
  return new KernelPolynomial();
case KERNEL_NEURAL:
return new KernelNeural();
default :
return new KernelDot();
}
}

public static Kernel createKernel ( int kernelType ) { switch ( kernelType ) { case KERNEL_RADIAL : return new KernelRadial ( ) ; case KERNEL_POLYNOMIAL : return new KernelPolynomial ( ) ; case KERNEL_NEURAL : return new KernelNeural ( ) ; default : return new KernelDot ( ) ; } }
creates a new kernel of the given type . the kernel type has to be one out of kernel_dot , kernel_radial , kernel_polynomial , or kernel_neural .
