40 #ifndef SHARK_OBJECTIVEFUNCTIONS_BENCHMARK_LZ5_H 41 #define SHARK_OBJECTIVEFUNCTIONS_BENCHMARK_LZ5_H 92 std::size_t counter1 = 0, counter2 = 0;
93 for( std::size_t i = 1; i < x.size(); i++ ) {
98 (0.3*x(0)*x(0)*::cos(24*M_PI*x(0)+4*i*M_PI/x.size()) + 0.6*x(0))*
99 ::cos( 6 * M_PI * x( 0 ) + i*M_PI/x.size() )
106 (0.3*x(0)*x(0)*::cos(24*M_PI*x(0)+4*i*M_PI/x.size()) + 0.6*x(0))*
107 ::sin( 6 * M_PI * x( 0 ) + i*M_PI/x.size() )
113 value[0] *= 2./counter1;
116 value[1] *= 2./counter2;
117 value[1] += 1 - ::sqrt( x( 0 ) );