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

Home » Public Forums » archive » Re: geometric mean?
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: geometric mean? [message #21626] Fri, 08 September 2000 02:37 Go to previous message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
Andrew wrote:
>
> I have no response so I assume the answer is to
> roll your own.
>
> I did:
>
> FUNCTION GEOMEAN, arr
> RETURN, EXP(TOTAL(ALOG(arr))/N_ELEMENTS(arr))
> END
>
> - Andrew
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.

Hi Andrew,

I couldn't find such a routine either so I decided to hack it
together using the algorithm you suggest but including some error
cehcking and more caution with range limits or negative values. You
can find geomean.pro on my web pages:
http://www.mpimet.mpg.de/~schultz.martin/idl/html/libmartin_ schultz.html

Cheers,
Martin


--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Minor ticks beyond last xtickv?
Next Topic: Re: Vectorization question

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

Current Time: Sat Oct 11 01:43:34 PDT 2025

Total time taken to generate the page: 0.79876 seconds