https://www.stevenboivie.com/2017/11/27/g-set-represent-the-selected-elements-in-d-dimensional-space-and-estimate/