int index, rc = search:min_element (array, length, (float x) { 
                                                               return abs (x - level); 
                                                             }),
{
  level = statistics:CS_LEVEL, { statistics = settings->statistics }
};
