Is there any practical reason both spdev & ssdev are defined?
They both seem to do the same thing (ssdev is a little bit faster).
spdev=:+/@(*~ dev)
ssdev=:+/@:*:@dev


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Devon 
> McCormick
> Sent: Wednesday, 27 June 2007 03:54
> To: Programming forum
> Subject: Re: [Jprogramming] Correlation Coefficient
> 
> I always like the version that comes in the standard J stats library:
> 
>    corr
> cov % *&stddev
>    cov
> spdev % <:@[EMAIL PROTECTED]
>    spdev
> +/@(*~ dev)
>    dev
> -"_1 _ mean
>    mean
> +/ % #
>    stddev
> %:@var
>    var
> ssdev % <:@#
>    ssdev
> +/@:*:@dev
> 

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

Reply via email to