public double computeSecondCover(boolean leaf) {
    double max = 0.;
    for(DistanceEntry<E> e : secondAssignments) {
      double cover = leaf ? e.getDistance() : (e.getEntry().getCoveringRadius() + e.getDistance());
      max = cover > max ? cover : max;
    }
    return max;
  }
public double computeSecondCover ( boolean leaf ) { double max = 0. ; for ( DistanceEntry < E > e : secondAssignments ) { double cover = leaf ? e . getDistance ( ) : ( e . getEntry ( ) . getCoveringRadius ( ) + e . getDistance ( ) ) ; max = cover > max ? cover : max ; } return max ; }
Compute the covering radius of the second assignment.

@param leaf {@code true} if in leaf mode.
@return Covering radius.