I saw this but I didn't see that you are reporting a colossal slowdown in -"_1 1 .  You shouldn't change the stats code; let me fix the bug.

Henry Rich

On 9/17/2020 3:55 AM, Joseph Novakovich wrote:
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


--
This email has been checked for viruses by AVG.
https://www.avg.com

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

Reply via email to