Пример #1
0
 @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);
   }
 }
Пример #2
0
  @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];
  }