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

Home » Public Forums » archive » Re: moment functions with dimen keyword
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: moment functions with dimen keyword [message #63780] Thu, 20 November 2008 01:28 Go to next message
Spon is currently offline  Spon
Messages: 178
Registered: September 2007
Senior Member
On Nov 20, 12:08 am, Jeremy Bailin <astroco...@gmail.com> wrote about:
> [...] making versions of the built-in MOMENT, MEAN,
> VARIANCE, STDDEV, SKEWNESS and KURTOSIS functions so that they accept
> a DIMEN= keyword that works as you'd expect.
>
> Or is this something that no one really needs
> anyway? :-)=
>
> -Jeremy.

Hi Jeremy,

this addition would definitely be much appreciated :-)

I think I would personally opt for giving the new functions different
names, just to prevent any back-compatability issues (deep nested mean
() calls in procedures that have _extra keywords set and suddenly
don't do what you're expecting, for example.)

Looking forward to this, it would simplify things greatly for me!

Thanks,
Chris
Re: moment functions with dimen keyword [message #63864 is a reply to message #63780] Thu, 20 November 2008 06:40 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Nov 20, 4:28 am, Spon <christoph.b...@gmail.com> wrote:
> On Nov 20, 12:08 am, Jeremy Bailin <astroco...@gmail.com> wrote about:
>
>> [...] making versions of the built-in MOMENT, MEAN,
>> VARIANCE, STDDEV, SKEWNESS and KURTOSIS functions so that they accept
>> a DIMEN= keyword that works as you'd expect.
>
>> Or is this something that no one really needs
>> anyway? :-)=
>
>> -Jeremy.
>
> Hi Jeremy,
>
> this addition would definitely be much appreciated :-)
>
> I think I would personally opt for giving the new functions different
> names, just to prevent any back-compatability issues (deep nested mean
> () calls in procedures that have _extra keywords set and suddenly
> don't do what you're expecting, for example.)
>
> Looking forward to this, it would simplify things greatly for me!
>
> Thanks,
> Chris

Chris,

Actually, they are all renamed to MOMENT_D, MEAN_D, etc. Perhaps I
might distribute a shell script that you can run somewhere in your
path that goes and finds the built-in moment etc. functions, copies
them over, renames them to the _D versions, and then applies my
patches. That way I don't distribute any ITT code, but it's simple to
distribute my functions. At least, I could do that for Unix/Mac...
does Windows have the Bourne shell? (or patch, for that matter?) :-)=

-Jeremy.

-Jeremy.
Re: moment functions with dimen keyword [message #63865 is a reply to message #63780] Thu, 20 November 2008 06:34 Go to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
I have done the same last year with moment....
and I am sure many others did! (to save execution
time, I added a keyword maxmoment, such that it
does not compute the kurtosis if I only need the average).

It's incredible how much time is wasted because
ITT will not implement such an obvious improvement
in an existing routine!

Ciao,
Paolo



Spon wrote:
> On Nov 20, 12:08�am, Jeremy Bailin <astroco...@gmail.com> wrote about:
>> [...] making versions of the built-in MOMENT, MEAN,
>> VARIANCE, STDDEV, SKEWNESS and KURTOSIS functions so that they accept
>> a DIMEN= keyword that works as you'd expect.
>>
>> Or is this something that no one really needs
>> anyway? :-)=
>>
>> -Jeremy.
>
> Hi Jeremy,
>
> this addition would definitely be much appreciated :-)
>
> I think I would personally opt for giving the new functions different
> names, just to prevent any back-compatability issues (deep nested mean
> () calls in procedures that have _extra keywords set and suddenly
> don't do what you're expecting, for example.)
>
> Looking forward to this, it would simplify things greatly for me!
>
> Thanks,
> Chris
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: LAPACK routines
Next Topic: Re: Special characters in PostScript

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

Current Time: Wed Oct 08 15:27:14 PDT 2025

Total time taken to generate the page: 0.00714 seconds