GridProtectionAlliance / gsf

Grid Solutions Framework
https://gridprotectionalliance.org/NightlyBuilds/GridSolutionsFramework/Help/index.html
MIT License
161 stars 69 forks source link

GSF.Core: Split implementation of Middle() vs Median() #298

Closed StephenCWills closed 5 days ago

StephenCWills commented 5 days ago

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.