src/classify/intfeaturespace.cpp
void IntFeatureSpace::IndexAndSortFeatures(const INT_FEATURE_STRUCT *features, int num_features,
                                           std::vector<int> *sorted_features) const {
  sorted_features->clear();
  for (int f = 0; f < num_features; ++f) {
    sorted_features->push_back(Index(features[f]));
  }
  std::sort(sorted_features->begin(), sorted_features->end());
}
// Bulk calls to Index. Maps the given array of features to a vector of
// sorted int32_t indices.
Bulk calls to Index. Maps the given array of features to a vector of
sorted int32_t indices.
Bulk calls to Index . Maps the given array of features to a vector of sorted int32_t indices .
void IntFeatureSpace::IndexAndSortFeatures(const INT_FEATURE_STRUCT *features, int num_features,
                                           std::vector<int> *sorted_features) const {
  sorted_features->clear();
  for (int f = 0; f < num_features; ++f) {
    sorted_features->push_back(Index(features[f]));
  }
  std::sort(sorted_features->begin(), sorted_features->end());
}
void IntFeatureSpace :: IndexAndSortFeatures ( const INT_FEATURE_STRUCT * features , int num_features , std :: vector < int > * sorted_features ) const { sorted_features -> clear ( ) ; for ( int f = 0 ; f < num_features ; ++ f ) { sorted_features -> push_back ( Index ( features [ f ] ) ) ; } std :: sort ( sorted_features -> begin ( ) , sorted_features -> end ( ) ) ; }
Bulk calls to Index.
Bulk calls to Index .