src/clustering/ClusterEstimator.cpp
/**
 * Return the index of the max coefficient in vec
 * No such method seems to exist in Eigen lib
 */
Return the index of the max coefficient in vec
No such method seems to exist in Eigen lib
Return the index of the max coefficient in vec No such method seems to exist in Eigen lib
int argmax(Eigen::VectorXd &vec) {
  int argmax(0);
  double max(0);
  for (int index = 0; index < vec.size(); index++) {
    if (vec(index) > max) {
      max = vec(index);
      argmax = index;
    }
  }
  return argmax;
}
int argmax ( Eigen :: VectorXd & vec ) { int argmax ( 0 ) ; double max ( 0 ) ; for ( int index = 0 ; index < vec . size ( ) ; index ++ ) { if ( vec ( index ) > max ) { max = vec ( index ) ; argmax = index ; } } return argmax ; }
Return the index of the max coefficient in vec
 No such method seems to exist in Eigen lib
Return the index of the max coefficient in vec No such method seems to exist in Eigen lib