public static double LinearKernel(Vector w, Vector x, int power) { return Math.pow(w.transpose(x), power); }