The name of the Median() function is misleading, which led to some sneaky logic errors in the islanding detection algorithm. Splitting the implementation like this should help to resolve potential confusion. I also snuck in some optimizations for non-array lists and collections which are not lists.
The name of the
Median()
function is misleading, which led to some sneaky logic errors in the islanding detection algorithm. Splitting the implementation like this should help to resolve potential confusion. I also snuck in some optimizations for non-array lists and collections which are not lists.