protected double kNNDistance(){
  double knnDist=0.;
  for (int i=0; i < getNumEntries(); i++) {
    MkMaxEntry entry=getEntry(i);
    knnDist=Math.max(knnDist,entry.getKnnDistance());
  }
  return knnDist;
}

protected double kNNDistance ( ) { double knnDist = 0. ; for ( int i = 0 ; i < getNumEntries ( ) ; i ++ ) { MkMaxEntry entry = getEntry ( i ) ; knnDist = Math . max ( knnDist , entry . getKnnDistance ( ) ) ; } return knnDist ; }
determines and returns the k - nearest neighbor distance of this node as the maximum of the k - nearest neighbor distances of all entries .
