This looks like the usual variability of timing few iterations.  If you try
this with 100 iterations, i.e.

   5j2": (%"1<./) 100&(6!:2)&>'pair2 ry';'pair3 ry' [ry=.25

your results should be more stable.

On Fri, Nov 7, 2008 at 9:38 AM, Arie Groeneveld <[EMAIL PROTECTED]> wrote:

> However....
>
> Executing the following two lines several times (sometimes I get erratic
> results):
>
>   5j2": (%"1<./) 5&(6!:2)&>'pair2 ry';'pair3 ry' [ry=.25
>  1.00 1.34
>
>   5j2": (%"1<./) 5&(6!:2)&>'pair2 ry';'pair3 ry' [ry=.1000
>  1.02 1.00
>
>
> Arie Groeneveld schreef:
> > Slower , but more concise
> >
> > pair3=:[:;<@({.,.}.)[EMAIL PROTECTED]
> >
> >
> > Arie Groeneveld schreef:
> >
> >> pair2=:([:;],."0 _&.>[:<\.1&+)@i.@<:
> >>
> >>    (pair2-:pairi) 100
> >> 1
> >>
> >>
> >>
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to