40 #ifndef SHARK_OBJECTIVEFUNCTIONS_BENCHMARK_LZ9_H 41 #define SHARK_OBJECTIVEFUNCTIONS_BENCHMARK_LZ9_H 84 std::size_t counter1 = 0, counter2 = 0;
85 for( std::size_t i = 1; i < x.size(); i++ ) {
88 value[1] +=
sqr( x(i) - ::sin( 6 * M_PI * x( 0 ) + i*M_PI/x.size() ) );
91 value[0] +=
sqr( x(i) - ::sin( 6 * M_PI * x( 0 ) + i*M_PI/x.size() ) );
95 value[0] *= 2./counter1;
98 value[1] *= 2./counter2;
99 value[1] += 1 - x( 0 ) * x( 0 );