public double f(double[] x) {
    double result = 0.0;

    Benchmark.shift(memoryBuffer, x, shiftedGlobalOptimum);

    result = Benchmark.sphere(memoryBuffer);

    result += mBias;

    return (result);
  }
public double f ( double [ ] x ) { double result = 0.0 ; Benchmark . shift ( memoryBuffer , x , shiftedGlobalOptimum ) ; result = Benchmark . sphere ( memoryBuffer ) ; result += mBias ; return ( result ) ; }
Function body