On 9/4/07, Roelof Brouwer <[EMAIL PROTECTED]> wrote:
   mean=:+/%#
   variance=: (mean@:*:)-(*:@ mean)
   normalize_data=: ([-mean)%(%:@: variance)
   norm_data=: normalize_data"1&.|:
   norm=: ([- " 1 mean)%"1 %:@: variance

...

With the above definitions (which include a couple names supplied
by me), the following holds:

   (norm -: norm_data) ?3 3$0
1

So... what was the question?

Thanks,

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

Reply via email to