Am 24.09.2019 um 15:49 schrieb Allin Cottrell:
On Tue, 24 Sep 2019, Ioannis A. Venetis wrote:
Thanks, Ioannis. Maybe this offers a way to break the current deadlock
over msample? We could easily rejig msample as randperm (quite nice to
have a Matlab-compatible function and no harm in using the same name)
and then leave it up to users how exactly they want to employ it.
The existing design use of msample on X (r x c), as in
matrix s = msample(X, n)
would become
matrix s = X[randperm(r,n),]
My personal taste is that the r feels redundant here -- in the sense
that there's a good reason it doesn't appear in the msample variant.
Having X as a function argument avoids this. What about randperm(X,n)?
(I know, the arg type of the 1st thing wouldn't be fixed...)
But it's a minor thing of course, I don't want to hold up the future.
cheers
sven