<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
<MAN>
  <LANGUAGE>eng</LANGUAGE>
  <TITLE>variance</TITLE>
  <TYPE>  </TYPE>
  <DATE>July 2000</DATE>
  <SHORT_DESCRIPTION name="variance"> variance of  the values of a  vector or matrix</SHORT_DESCRIPTION>
  <CALLING_SEQUENCE>
    <CALLING_SEQUENCE_ITEM>s=variance(x)  </CALLING_SEQUENCE_ITEM>
    <CALLING_SEQUENCE_ITEM>s=variance(x,'r') or m=variance(x,1)  </CALLING_SEQUENCE_ITEM>
    <CALLING_SEQUENCE_ITEM>s=variance(x,'c') or m=variance(x,2)  </CALLING_SEQUENCE_ITEM>
  </CALLING_SEQUENCE>
  <PARAM>
    <PARAM_INDENT>
      <PARAM_ITEM>
        <PARAM_NAME>x</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>: real or complex vector or matrix</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
    </PARAM_INDENT>
  </PARAM>
  <DESCRIPTION>
    <P>
    This function  computes the variance of  the values of a
    vector or matrix <VERB>x</VERB>.</P>
    <P>
    For a vector or a matrix <VERB>x</VERB>, <VERB>s=variance(x)</VERB> returns
    in the scalar <VERB>s</VERB> the variance of all the entries of
    <VERB>x</VERB>.</P>
    <P><VERB>s=variance(x,'r')</VERB> (or,  equivalently, <VERB>s=variance(x,1)</VERB>)
    is the rowwise variance. It returns in each entry of the
    row vector s the variance of each column of <VERB>x</VERB>.</P>
    <P><VERB>s=variance(x,'c')</VERB> (or, equivalently,  <VERB>s=variance(x,2)</VERB>)
    is the columnwise  standard  deviation.  It returns   in
    each entry of the column vector  <VERB>s</VERB> the variance of
    each row of <VERB>x</VERB>.</P>
  </DESCRIPTION>
  <EXAMPLE>
<![CDATA[

x=[0.2113249 0.0002211 0.6653811;0.7560439 0.4453586 0.6283918]
s=variance(x)
s=variance(x,'r')
s=variance(x,'c')

 ]]>
  </EXAMPLE>
  <AUTHOR> Carlos Klimann</AUTHOR>
  <BIBLIO>
    <P>
    Wonacott, T.H. &amp; Wonacott, R.J.; Introductory Statistics, fifth edition, J.Wiley &amp; Sons, 1990.</P>
  </BIBLIO>
</MAN>
