Hi,

I was writing off the stats/base addon, and I noticed the
implementation for deviation from mean is slower than should be for
lists:

   x =: ? 1e6 $ 0
   dev =: (-"_1 _ mean) NB. current
   dev0=: (- mean)`(-"_1 _ mean)@.(1<#@$) NB. proposed
   10 (6!:2) 'dev x'
0.155722
   10 (6!:2) 'dev0 x'
0.0015065

I sent a patch https://github.com/jsoftware/stats_base/pull/2 and Ric
Sherlock suggested I should inquire here if it's something to look at
in the language implementation instead.

Thanks,

Joseph
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to