public int [] svmTest(Problem test) {
                if (test == null) 
                        return null;
                int [] pred = new int[test.l];
                for (int i=0; i<test.l; i++) {
                        pred[i] = (svmTestOne(test.x[i])<0?-1:1);
                }
                return pred;
        }