This may not solve exactly your problem, you can try the dyad I. 
eg
   a=. 133 139 153 159 165
   a I. 152
2
   2{a
153

Вск, 26 Дек 2010, PackRat писал(а):
> I'm just learning about the .e primitive, and I was wondering how I do 
> a match when a close (but not exact) match is involved.  In other 
> words, how do I do the equivalent of this:
> 
>    ( a +/- b )  .e  y
> 
> where the value of b might be, say, 5 or 8 or 12 or whatever (not some 
> near-zero tolerance factor).
> 
> For example, when matching an element of array a having a value of 152 
> with a match range of +/- 7 and the values of y close to that might be 
> ... 133 139 153 159 165 ..., how do I obtain the value 153 from y as a 
> "match" (that is, a boolean true)?
> 
> Thanks in advance for your help!
> 
> Harvey
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to