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

Home » Public Forums » archive » cumulative function?
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
cumulative function? [message #12329] Tue, 21 July 1998 00:00
David Schmidt is currently offline  David Schmidt
Messages: 6
Registered: January 1997
Junior Member
Anyone know of a fast (e.g. built-in) way to construct a cumulative
vector from a given input vector?

The slow way is:

Given A(100)
C=fltarr(100)
C(0)=A(0)
For i=1,99 do C(i)=C(i-1)+A(i)

The hist_eq function help mentions forming such a vector but I don't
know how to access it.

David
--
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: getting data from a pointer
Next Topic: Re: Would you help me out? data converting problem.

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

Current Time: Sat Oct 11 07:40:27 PDT 2025

Total time taken to generate the page: 0.08272 seconds