]L=: i:5
_5 _4 _3 _2 _1 0 1 2 3 4 5
   ]N=: _1,i.#L
_1 0 1 2 3 4 5 6 7 8 9 10
   
   t,: N{~L I. t=. _100 _3.3 _3 _2.5 _2 _1 _0.9 0 0.1 1 2.5 100
_100 _3.3 _3 _2.5 _2 _1 _0.9 0 0.1 1 2.5 100
  _1    1  1    2  2  3    4 4   5 5   7  10
   
   L,:N
_5 _4 _3 _2 _1 0 1 2 3 4 5  0
_1  0  1  2  3 4 5 6 7 8 9 10


--- Roger Hui <[EMAIL PROTECTED]> wrote:

> Try the dyad I. (new to J6.01).
> 
> 
> 
> ----- Original Message ----- 
> From: "David Vincent-Jones" <[EMAIL PROTECTED]>
> To: "JSoftware Programming" <[email protected]>
> Sent: Tuesday, March 28, 2006 2:40 PM
> Subject: [Jprogramming] Interval Class
> 
> I need to determine a 'class' into which results are falling.
>  
> For instance:
> Class limits .. _5 _4 _3 _2 _1 0 1 2 3 4 5
> Class Names ....   0  1  2  3 4 5 6 7 8 9 
> 
> Typical values _3.3 to class 1
> 3.3 to class 8
> 
> If a value is exactly on a limit then either the upper or lower name can be
> used.
> 
> The positive - negative thing is giving me some problems and I could
> appreciate ideas.
> 
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to