src/ccstruct/detlinefit.cpp
int DetLineFit::NumberOfMisfittedPoints(double threshold) const {
  int num_misfits = 0;
  int num_dists = distances_.size();
  // Get the absolute values of the errors.
  for (int i = 0; i < num_dists; ++i) {
    if (distances_[i].key() > threshold) {
      ++num_misfits;
    }
  }
  return num_misfits;
}
// Returns the number of sample points that have an error more than threshold.
Returns the number of sample points that have an error more than threshold.
Returns the number of sample points that have an error more than threshold .
int DetLineFit::NumberOfMisfittedPoints(double threshold) const {
  int num_misfits = 0;
  int num_dists = distances_.size();
  for (int i = 0; i < num_dists; ++i) {
    if (distances_[i].key() > threshold) {
      ++num_misfits;
    }
  }
  return num_misfits;
}
int DetLineFit :: NumberOfMisfittedPoints ( double threshold ) const { int num_misfits = 0 ; int num_dists = distances_ . size ( ) ; for ( int i = 0 ; i < num_dists ; ++ i ) { if ( distances_ [ i ] . key ( ) > threshold ) { ++ num_misfits ; } } return num_misfits ; }
Returns the number of sample points that have an error more than threshold.
Returns the number of sample points that have an error more than threshold .
// Get the absolute values of the errors.