Skip to content
Prev 152997 / 398500 Next

Between the values

On Tue, 12 Aug 2008, Shubha Vishwanath Karanth wrote:

            
Perhaps using

 	?findInterval

like

 	findInterval( x, 0:1 ) == findInterval( -x, -1:0 )

Approaches like this can be helpful when x is a lengthy vector and one 
must check too many intervals to make outer() feasible.

Chuck
Charles C. Berry                            (858) 534-2098
                                             Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu	            UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901