Working with practical statistics and samples that can be also empty I find that J follows a kind of logic that is uncomfortable. Taking a empty vector 0$0 (empty sample) :

   +/0$0        NB. sum of empty sample is zero !
0

   (+/ % #) 0$0 NB. mean of empty sample is also zero !
0

I wonder why (+/0$0)  could not be 0$0 instead of 0 ?

Anssi

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

Reply via email to