92 std::size_t counter1 = 0, counter2 = 0;
93 for( std::size_t i = 1; i < x.size(); i++ ) {
94 double y = x(i) - ::pow( x(0), 0.5*(1.0 + 3*(i-1)/(x.size()-1) ) );
97 value[1] += 4*
sqr( y ) - ::cos( 8*y*M_PI) + 1.;
100 value[0] += 4*
sqr( y ) - ::cos( 8*y*M_PI) + 1.;
104 value[0] *= 2./counter1;
107 value[1] *= 2./counter2;
108 value[1] += 1 - std::sqrt( x( 0 ) );