src/classify/kdtree.cpp
static int NextLevel(KDTREE *tree, int level) {
  do {
    ++level;
    if (level >= tree->KeySize) {
      level = 0;
    }
  } while (tree->KeyDesc[level].NonEssential);
  return level;
}
// Helper function to find the next essential dimension in a cycle.
Helper function to find the next essential dimension in a cycle.
Helper function to find the next essential dimension in a cycle .
static int NextLevel(KDTREE *tree, int level) {
  do {
    ++level;
    if (level >= tree->KeySize) {
      level = 0;
    }
  } while (tree->KeyDesc[level].NonEssential);
  return level;
}
static int NextLevel ( KDTREE * tree , int level ) { do { ++ level ; if ( level >= tree -> KeySize ) { level = 0 ; } } while ( tree -> KeyDesc [ level ] . NonEssential ) ; return level ; }
Helper function to find the next essential dimension in a cycle.
Helper function to find the next essential dimension in a cycle .