find minimum

Leisha Wharfield leisha at decisionresearch.org
Wed Jun 28 18:14:58 UTC 2006


If there is no such command as "find min," or "find max," can you copy 
the array, add a nonnumeric tag that indicates position (abcd), then 
sort the array numerically & use the nonnumeric tag to indicate the 
lowest number's position in the original array?

Leisha Wharfield
Decision Research
Eugene, Oregon, USA
leisha at decisionresearch.org

Colleen Parks wrote:

> Hi,
>  
> I've got an array to which I've assigned a list of random numbers 
> (e.g., Array(0) = random(0,100)).  I need to find which element/array 
> position has the lowest value without sorting the array (position in 
> the array is important for another variable later on).  I've spent a 
> good amount of time searching to figure out what the code is to find 
> the minimum value of a list of variables, but haven't found anything 
> yet.  There is no obvious documentation of a general "find min" and 
> "find max" function outside of the summation object. (Note that a 
> summation object won't help because it will return the minimum of a 
> set of values, but will not, as far as I can tell, indicate which 
> variable (or observation) the minimum value is linked to).  There's 
> got to be a find min/max ability in there somewhere!  Can anyone point 
> me in the right direction?
>  
> Thanks!
> Colleen
>  
>  
> ---------------------------------------
> Colleen Parks, Ph.D.
> Psychology Department
> University of California
> One Shields Ave.
> Davis, CA 95616
>  
> cmparks at ucdavis.edu <mailto:cmparks at ucdavis.edu>
> 530.754.9439

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20060628/4161785e/attachment.htm>


More information about the Eprime mailing list