On 28 April 2011 22:17, Muhali <[email protected]> wrote:
> There is no function nancumsum in package nan. This function should compute
> the cumulative sum of arrays just like cumsum, only that it respects nan
> values. This is easily done in a script, but I guess a builtin function (like
> cumsum) is faster.
I don't know much about the NaN package so I apologize if my answer
makes little sense. What do you mean by respecting NaN values? I tried
cumsum on octave3.2 and behaved as I would expect it to.
octave-3.2.4:9> a = [NaN 2 5];
octave-3.2.4:11> b = [2 5 NaN 7];
octave-3.2.4:12> cumsum(a)
ans =
NaN NaN NaN
octave-3.2.4:13> cumsum(b)
ans =
2 7 NaN NaN
Carnë
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev