示例#1
0
  public void eval(
      final EvolutionState state,
      final int thread,
      final GPData input,
      final ADFStack stack,
      final GPIndividual individual,
      final Problem problem) {
    RegressionData rd = ((RegressionData) (input));

    children[0].eval(state, thread, input, stack, individual, problem);
    rd.x = Math.tan(rd.x);
  }
示例#2
0
 public void eval(
     final EvolutionState state,
     final int thread,
     final GPData input,
     final ADFStack stack,
     final GPIndividual individual,
     final Problem problem) {
   RegressionData rd = ((RegressionData) (input));
   double[] c = ((Benchmarks) problem).currentValue;
   if (c.length >= 35) rd.x = ((Benchmarks) problem).currentValue[34];
   else rd.x = 0;
 }