Am 17.09.2019 um 09:47 schrieb Riccardo (Jack) Lucchetti:
matrix sel = ranking(muniform(n,1))
return X[sel[1:k],]
the doc for ranking says "...plus one half the number of elements...",
so it can be non-integer, no? How is that a valid selection index matrix?
-s