[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Cumulant vector
From: |
Bhaskar Mehta |
Subject: |
RE: Cumulant vector |
Date: |
Mon, 22 Oct 2007 14:37:20 +0200 |
a=[1 2 3 4 5] ;b=zeros(size(a));
b(1,1)=a(1,1);
for i=2:size(b,1)
b(i,1)=a(i,1)+b(i-1,1);
endfor
do it c++ (.oct file) and it should be blazingly fast.
------------------------------------------------------
Bhaskar Mehta,
Researcher, L3S Forschungszentrum
Appelstrasse 4 Hannover, Germany
Phone: +49 511 762 17761
------------------------------------------------------
________________________________________
From: Oscar Bayona Candel [mailto:address@hidden
Sent: Monday, October 22, 2007 2:07 PM
To: address@hidden
Subject: Cumulant vector
Hi all,
There is some function or easy way in Octave that permit you acumulate
reference points?
I mena, for example,
a=[1 2 3 4 5]
b=[1 3 6 10 15]
b sums the previous sum of the matrix.
so that b is the results of doing these kind of operations:
b[1,1)=a(1,1)
b(1.2)=b(1.1)+a(1.2)....b(1.5)=b(1.4)+b(1.5)
Thanks in advance.
________________________________________
Express yourself instantly with MSN Messenger! MSN Messenger