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

Home » Public Forums » archive » moment functions with dimen keyword
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: moment functions with dimen keyword [message #63862 is a reply to message #63797] Thu, 20 November 2008 06:45 Go to previous message
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
On Thu, 20 Nov 2008, Paolo wrote:

> 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).

IDL 6.4's MOMENT has a MAXMOMENT keyword. Use the source, Luke!
(not the documentation :-)

regards,
lajos

; CALLING SEQUENCE:
; Result = Moment(X)
;
; INPUTS:
; X: An N-element vector of type integer, float or double.
;
; KEYWORD PARAMETERS:
; DOUBLE: IF set to a non-zero value, computations are done in
; double precision arithmetic.
;
; MDEV: Use this keyword to specify a named variable which returns
; the mean absolute deviation of X.
;
; SDEV: Use this keyword to specify a named variable which returns
; the standard deviation of X.
;
; MAXMOMENT:
; Use this keyword to limit the number of moments:
; Maxmoment = 1 Calculate only the mean.
; Maxmoment = 2 Calculate the mean and variance.
; Maxmoment = 3 Calculate the mean, variance, and skewness.
; Maxmoment = 4 Calculate the mean, variance, skewness,
; and kurtosis (the default).
;
; NAN: Treat NaN elements as missing data.
; (Due to problems with IEEE support on some platforms,
; infinite data will be treated as missing as well. )
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Why the contour does not show?
Next Topic: Too Many Posts

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

Current Time: Fri Oct 10 04:04:03 PDT 2025

Total time taken to generate the page: 2.40093 seconds