comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » max, mean, min of array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: max, mean, min of array [message #28971 is a reply to message #28690] Sat, 26 January 2002 14:33 Go to previous message
Wonko[1] is currently offline  Wonko[1]
Messages: 1
Registered: January 2002
Junior Member
craigmnet@cow.physics.wisc.edu (Craig Markwardt) wrote:

> Alex, I think *both* solutions should be possible. Consider the
> following scenario: instead of a 400x400x12 array, how about a
> 2x2x1000000 array? Using your technique we would end up doing
> 1000000 iterations, but with mine it would only be 4.

Yeah, I thought of that, but I had thought about the Send-button
first.

> Thus, the code should contain both solutions, and pick whichever one
> takes fewer iterations.

Right.

While you are at it: Why not allow any generic function to be
cmapplied? This would work like MAX() and MIN() as it does now, but
with CALL_FUNCTION(). So we would have MEDIAN(), STDEV() and so on.

Alex
--
Alex Schuster Wonko@planet-interkom.de PGP Key available
alex@pet.mpin-koeln.mpg.de
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Convert a byte array to a structure?
Next Topic: Subject : locks, semaphores, and such

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Mon Dec 01 20:38:31 PST 2025

Total time taken to generate the page: 2.00704 seconds