Difference between revisions of "Average"

 
Line 9: Line 9:
 
= Notes =
 
= Notes =
  
X is evaluated in context.  Thus, if you use Average to sum over the Run index, you may encounter a potential confusion, since Average(A,I) will be summing the Mid-value across I, not the sample.  To sum over the Run index, use the [[Mean]] function, unless your intention really is to Sum the mid-value.
+
X is evaluated in context.  Thus, if you use Average to sum over the [[Run]] index, you may encounter a potential confusion, since Average(A,I) will be summing the Mid-value across I, not the sample.  To sum over the Run index, use the [[Mean]] function, unless your intention really is to Sum the mid-value.

Revision as of 22:02, 22 February 2007


Returns the mean value of all the elements of array X, averaged over index I.

Declaration

Average( X : Numeric[I] ; I : Index )

Notes

X is evaluated in context. Thus, if you use Average to sum over the Run index, you may encounter a potential confusion, since Average(A,I) will be summing the Mid-value across I, not the sample. To sum over the Run index, use the Mean function, unless your intention really is to Sum the mid-value.

Comments


You are not allowed to post comments.