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

Home » Public Forums » archive » Averaging of my observations
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: Averaging of my observations [message #93260 is a reply to message #93257] Mon, 23 May 2016 05:42 Go to previous message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
Den måndag 23 maj 2016 kl. 13:39:48 UTC+2 skrev AGW:
> IDL> y=mean(x,dimension=1)
> % Keyword DIMENSION not allowed in call to: MEAN
> % Execution halted at: $MAIN$

OK, you are using IDL version < 8.

You can use total() instead of mean, and divide by the number of summed items. total() does support the dimension to sum over since before IDL 8, although not as a keyword but as the second parameter.

So you could do something like

IDL> dim=1
IDL> y=total(x,dim)/(size(x,/dim))[dim-1]
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: generate sequential list
Next Topic: check whether i'm in the virtual machine

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

Current Time: Wed Oct 08 13:53:31 PDT 2025

Total time taken to generate the page: 0.28940 seconds