@Override public void init(int dim) { tf = new testfunc(); try { tf.readBasics(dim, 1, 12); } catch (Exception ex) { Logger.getLogger(f1.class.getName()).log(Level.SEVERE, null, ex); } }
@Override public double getValue(double[] features) { double[] f = new double[1]; try { tf.test_func(features, f, features.length, 1, 12); } catch (Exception ex) { Logger.getLogger(f12.class.getName()).log(Level.SEVERE, null, ex); } return f[0]; }