A first attempt at creating editor scripts in unity. The entire development process can be read on medium.
To run this script download https://numerics.mathdotnet.com/#Math-NET-Numerics and put the unzipped folder under the packages folder in your Unity project.