Am 27.09.2018 um 08:27 schrieb Riccardo (Jack) Lucchetti:
On Thu, 27 Sep 2018, Sven Schreiber wrote:
I was wondering, yesterday, when looking at your code: why initialise
m to $huge? wouldn't
matrix m = mshape(NA, N - skip, 1)
do?
Absolutely, I just wasn't aware that mshape works with NA as input.
And another thing: it may make sense to expand atof() so as to return
automatically a column vector if the argument is a string array. Or am
I missing something?
That would be nice, yes.
Speaking about the helper functions, what do you think of
<hansl>
function matrix mode(matrix v)
# v should be a vector
E = ecdf(vec(v))
howmuch = diff(E[,2])
where = imaxc(howmuch)
return E[where, 1] | howmuch[where]
end function
</hansl>
I must say I quite like it. Should it go into the extra addon?
-sven