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="stdevf">
15
<refname>stdevf</refname>
16
<refpurpose> standard deviation</refpurpose>
19
<title>Calling Sequence</title>
20
<synopsis>s=stdevf(x,fre)
21
s=stdevf(x,fre,'r') or s=stdevf(x,fre,1)
22
s=stdevf(x,fre,'c') or s=stdevf(x,fre,2)
26
<title>Arguments</title>
31
<para>real or complex vector or matrix</para>
37
<para>real or complex vector or matrix</para>
43
<title>Description</title>
45
This function computes the standard deviation of the
46
values of a vector or matrix <literal> x</literal>, each of them
47
counted with a frequency given by the corresponding
48
values of the integer vector or matrix <literal> fre</literal> who
49
has the same type of <literal> x</literal>.
52
For a vector or matrix <literal> x</literal>, s=stdevf(x,fre) (or
53
<literal> s=stdevf(x,fre,'*') </literal> returns in scalar <literal> s</literal>
54
the standard deviation of all the entries of <literal> x</literal>,
55
each value counted with the multiplicity indicated by
56
the corresponding value of <literal> fre</literal>.
59
<literal>s=stdevf(x,fre,'r')</literal> (or, equivalently,
60
<literal>s=stdevf(x,fre,1)</literal>) returns in each entry of the row
61
vector <literal> s</literal> of type 1xsize(x,'c') the standard
62
deviation of each column of <literal> x</literal>, each value counted
63
with the multiplicity indicated by the corresponding
64
value of <literal> fre</literal>.
67
<literal>s=stdevf(x,fre,'c')</literal> (or, equivalently,
68
<literal> s=stdevf(x,fre,2)</literal>) returns in each entry of the
69
column vector <literal> s</literal> of type size(x,'c')x1 the
70
standard deviation of each row of <literal> x</literal>, each value
71
counted with the multiplicity indicated by the
72
corresponding value of <literal> fre</literal>.
76
<title>Examples</title>
77
<programlisting role="example"><![CDATA[
15
<refname>stdevf</refname>
16
<refpurpose> standard deviation</refpurpose>
19
<title>Calling Sequence</title>
20
<synopsis>s=stdevf(x,fre)
21
s=stdevf(x,fre,'r') or s=stdevf(x,fre,1)
22
s=stdevf(x,fre,'c') or s=stdevf(x,fre,2)
26
<title>Arguments</title>
31
<para>real or complex vector or matrix</para>
37
<para>real or complex vector or matrix</para>
43
<title>Description</title>
45
This function computes the standard deviation of the
46
values of a vector or matrix <literal> x</literal>, each of them
47
counted with a frequency given by the corresponding
48
values of the integer vector or matrix <literal> fre</literal> who
49
has the same type of <literal> x</literal>.
52
For a vector or matrix <literal> x</literal>, s=stdevf(x,fre) (or
53
<literal> s=stdevf(x,fre,'*') </literal> returns in scalar <literal> s</literal>
54
the standard deviation of all the entries of <literal> x</literal>,
55
each value counted with the multiplicity indicated by
56
the corresponding value of <literal> fre</literal>.
59
<literal>s=stdevf(x,fre,'r')</literal> (or, equivalently,
60
<literal>s=stdevf(x,fre,1)</literal>) returns in each entry of the row
61
vector <literal> s</literal> of type 1xsize(x,'c') the standard
62
deviation of each column of <literal> x</literal>, each value counted
63
with the multiplicity indicated by the corresponding
64
value of <literal> fre</literal>.
67
<literal>s=stdevf(x,fre,'c')</literal> (or, equivalently,
68
<literal> s=stdevf(x,fre,2)</literal>) returns in each entry of the
69
column vector <literal> s</literal> of type size(x,'c')x1 the
70
standard deviation of each row of <literal> x</literal>, each value
71
counted with the multiplicity indicated by the
72
corresponding value of <literal> fre</literal>.
76
<title>Examples</title>
77
<programlisting role="example"><![CDATA[
78
78
x=[0.2113249 0.0002211 0.6653811;0.7560439 0.9546254 0.6283918]
81
81
m=stdevf(x,fre,'r')
82
82
m=stdevf(x,fre,'c')
83
83
]]></programlisting>
86
<title>Bibliography</title>
88
Wonacott, T.H. & Wonacott, R.J.; Introductory Statistics, fifth edition, J.Wiley & Sons, 1990.
86
<title>Bibliography</title>
88
Wonacott, T.H. & Wonacott, R.J.; Introductory Statistics, fifth edition, J.Wiley & Sons, 1990.