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

Home » Public Forums » archive » Re: Cumulative sum
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: Cumulative sum [message #33712 is a reply to message #33711] Thu, 16 January 2003 12:14 Go to previous message
mchinand is currently offline  mchinand
Messages: 66
Registered: September 1996
Member
In article <b072o8$6j0$1@SonOfMaze.dpo.uab.edu>,
R. Kyle Justice <rkj@dukebar.crml.uab.edu> wrote:
> Is there a function for computing the cumulative sum of
> an array (similar to matlab's cumsum)?
>
> For instance: cumsum(indgen(5)) = [1,3,6,10,15]
>
> Kyle J.
>
>

Yes, use the /CUMULATIVE keyword to TOTAL. With the optional DIMENSION
argument can set over which dimension is summed over.

--Mike


--
Michael Chinander
m-chinander@uchicago.edu
Department of Radiology
University of Chicago
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Push value onto an array?
Next Topic: plotting particle data with halos?

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

Current Time: Fri Oct 10 12:04:13 PDT 2025

Total time taken to generate the page: 0.64124 seconds