13
13
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="nancumsum">
15
<refname>nancumsum</refname>
16
<refpurpose> Thos function returns
17
the cumulative sum of the values of a matrix
21
<title>Calling Sequence</title>
22
<synopsis>s = nancumsum(x,orient)</synopsis>
25
<title>Arguments</title>
30
<para>x is a numerical vector or matrix.</para>
36
<para>is an optional parameter. The possible values are
37
'*', 1, 2, 'r' or 'c'.
44
<para>numerical scalar or vector. It contains the cumulative
45
sum of the values of x, ignoring the NAN's.
52
<title>Description</title>
54
This function returns in scalar or vector s the cumulative
55
sum of the values (ignoring the NANs) of a vector or
56
matrix (real or complex) x.
59
This function for a vector or a matrix x, s=nancumsum(x)
60
(or, equivalently s=nancumsum(x,'*') returns in scalar s
61
the cumulative sum (ignoring the NANs) of all the entries
62
of x taken columnwise.
65
s=nancumsum(x,'r') (or, equivalently, s=nancumsum(x,1))
66
returns in the cols(x) sized vector s the cumulative sum
67
(ignoring the NANs) of the rows of x:
68
s(:,i)=nancumsum(x(:,i))
71
s=nancumsum(x,'c') (or, equivalently, s=nancumsum(x,2))
72
returns in the rows(x) sized vector s the cumulative sum
73
(ignoring NANs) of the columns of x:
74
s(i,:)=nancumsum(x(i,:))
77
For the last two cases, if a row or column is in whole
78
composed of NAN, the corresponding place of s will contain
83
<title>Examples</title>
84
<programlisting role="example"><![CDATA[
15
<refname>nancumsum</refname>
16
<refpurpose> Thos function returns
17
the cumulative sum of the values of a matrix
21
<title>Calling Sequence</title>
22
<synopsis>s = nancumsum(x,orient)</synopsis>
25
<title>Arguments</title>
30
<para>x is a numerical vector or matrix.</para>
36
<para>is an optional parameter. The possible values are
37
'*', 1, 2, 'r' or 'c'.
44
<para>numerical scalar or vector. It contains the cumulative
45
sum of the values of x, ignoring the NAN's.
52
<title>Description</title>
54
This function returns in scalar or vector s the cumulative
55
sum of the values (ignoring the NANs) of a vector or
56
matrix (real or complex) x.
59
This function for a vector or a matrix x, s=nancumsum(x)
60
(or, equivalently s=nancumsum(x,'*') returns in scalar s
61
the cumulative sum (ignoring the NANs) of all the entries
62
of x taken columnwise.
65
s=nancumsum(x,'r') (or, equivalently, s=nancumsum(x,1))
66
returns in the cols(x) sized vector s the cumulative sum
67
(ignoring the NANs) of the rows of x:
68
s(:,i)=nancumsum(x(:,i))
71
s=nancumsum(x,'c') (or, equivalently, s=nancumsum(x,2))
72
returns in the rows(x) sized vector s the cumulative sum
73
(ignoring NANs) of the columns of x:
74
s(i,:)=nancumsum(x(i,:))
77
For the last two cases, if a row or column is in whole
78
composed of NAN, the corresponding place of s will contain
83
<title>Examples</title>
84
<programlisting role="example"><![CDATA[
89
89
]]></programlisting>
91
<refsection role="see also">
92
<title>See Also</title>
93
<simplelist type="inline">
95
<link linkend="nansum">nansum</link>
98
<link linkend="cumsum">cumsum</link>
91
<refsection role="see also">
92
<title>See Also</title>
93
<simplelist type="inline">
95
<link linkend="nansum">nansum</link>
98
<link linkend="cumsum">cumsum</link>