private boolean isLocalMaximum(double kdist,DBIDs neighbors,WritableDoubleDataStore kdists){
  for (DBIDIter it=neighbors.iter(); it.valid(); it.advance()) {
    if (kdists.doubleValue(it) < kdist) {
      return false;
    }
  }
  return true;
}

private boolean isLocalMaximum ( double kdist , DBIDs neighbors , WritableDoubleDataStore kdists ) { for ( DBIDIter it = neighbors . iter ( ) ; it . valid ( ) ; it . advance ( ) ) { if ( kdists . doubleValue ( it ) < kdist ) { return false ; } } return true ; }
test if a point is a local density maximum .
