Choice of reference spectra in the cloud of spectra

We select the reference spectra in the high density convex hull (in green). Among the points of the high density convex hull, we choose the n (n = 3,4,5,ou 6) points which draw the best polygon (in red) that is rounding the cloud of spectra.