Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
extrema / usr / share / extrema / Help / Functions / adev.htm
Size: Mime:
<HTML>
<HEAD>
<TITLE>ADEV function</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF" fgcolor="#000000">

<P><font size="+3" color="green"><B>Average deviation</B></font></P>
<P>
<TABLE border="1" cols="2" frame="box" rules="all" width="572">
<TR>
<TD width="15%" valign="top"><B>Syntax</B>:</TD>
<TD width="85%"><CODE>s = ADEV(x)</CODE><br />
              <CODE>s = ADEV(w,x)</CODE></TD></TR>
</table></p>
<p>
 The <code>ADEV</code> function only accepts one or two vector arguments.
 If only one vector is entered, the function returns the average deviation of that vector's data. If two
 vectors are entered, the first vector holds the weights and the second vector holds the data.  The result is
 always a scalar value.</p>
<p>
 Suppose that <i>x</i> is a vector with <i>N</i> elements.</P>
<P>
 A weight vector, <i>w</i>, may be entered as the first argument. The
 length of <i>w</i> is assumed to also be <i>N</i>. If no weights are entered,
 let &nbsp;<IMG WIDTH=17 HEIGHT=17 ALIGN=MIDDLE SRC="adevI01.gif">&nbsp; default to
 <CODE>1</CODE>, for</p>
<p>
 <IMG WIDTH=98 HEIGHT=25 ALIGN=MIDDLE SRC="adevI02.gif"></p>
<p>
 Define the total weight:</p>
<p>
 <IMG WIDTH=108 HEIGHT=36 ALIGN=MIDDLE SRC="adevI03.gif"></p>
<P>
 The mean value, <IMG WIDTH=8 HEIGHT=11 ALIGN=BOTTOM SRC="adevI04.gif">&nbsp;, is
 defined by</p>
<p>
 <IMG WIDTH=139 HEIGHT=36 ALIGN=MIDDLE SRC="adevI05.gif"></p>
<P>
 The average deviation, or mean deviation,
 <IMG WIDTH=7 HEIGHT=13 ALIGN=BOTTOM SRC="adevI06.gif">&nbsp;, is defined by</p>
<p>
 <IMG WIDTH=187 HEIGHT=36 ALIGN=MIDDLE SRC="adevI07.gif"></p>
<p>
 <font size="+1" color="green"><B>Examples</B></font></P>
<p>
 Suppose <code>X = [1;2;3;4;5;6;7;8;9;10]</code>, then <code>A = ADEV(X)</code> returns scalar
 <code>A</code> with the value <code>2.5</code>.</p>
<p>
 Suppose <code>W = [1;1;1;5;5;5;5;1;1;1]</code>, then <code>A = ADEV(W,X)</code> returns scalar
 <code>A</code> with the value <code>1.57692</code>.</p>
</BODY>
</HTML>