The two statements are not equivalent, but seem to produce the same result. I 
will see if I can find out why.

Louis

> On 12 Feb 2017, at 14:11, Lippu Esa <[email protected]> wrote:
> 
> Ok, thanks! I got it now.
> 
> Esa
> 
> 
> 
> -------- Original message --------
> From: 'Mike Day' via Programming <[email protected]>
> Date: 2/12/17 13:01 (GMT+02:00)
> To: [email protected]
> Subject: Re: [Jprogramming] Hooked again
> 
> It looks to me as if the two left hooks form one big left hook,
> not that I'm into boxing:
> 
>    mn =: -"1 mean
>    mp1=: mp~|:
> 
>    ((mp1 mn)%#)data    NB. big "hook"
> 504 360 180
> 360 360   0
> 180   0 720
> 
>    ((mp1 @: mn)%#)data   NB. mp1 after mn using @:
> 504 360 180
> 360 360   0
> 180   0 720
> 
>    (([: mp1 mn)%#)data    NB. mp1 after mn using [:
> 504 360 180
> 360 360   0
> 180   0 720
> 
> Any use?
> 
> Mike
> 
> 
>> On 12/02/2017 08:06, Lippu Esa wrote:
>> ]data=. 5 3 $ 90 60 90 90 90 30 60 60 60 60 60 90 30 30 30
>> 
>> mean=: +/%#
>> mp=:  +/ . *
>> covmat=: ((mp~|:)(-"1 mean))%# NB. divede by n not n-1 to comply with the 
>> example
> 
> 
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

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

Reply via email to