Difference between revisions of "TEAMean"
From SCAR Divi Manual
Line 11: | Line 11: | ||
==Description== | ==Description== | ||
− | Returns the arithmetic mean of the [[extended]] values in the given [[TExtArray]] '''TEA'''. Throws an exception if '''TEA''' is empty. | + | Returns the [http://mathworld.wolfram.com/ArithmeticMean.html arithmetic mean] of the [[extended]] values in the given [[TExtArray]] '''TEA'''. Throws an exception if '''TEA''' is empty. |
==Example== | ==Example== |
Latest revision as of 15:47, 12 December 2012
Definition
function TEAMean(const TEA: TExtArray): Extended;
Availability
SCAR Divi 3.38 > Current
Aliases
- Average (SCAR Divi 3.00 > 3.37)
Description
Returns the arithmetic mean of the extended values in the given TExtArray TEA. Throws an exception if TEA is empty.
Example
var TEA: TExtArray; begin TEA := [1.2, 1.8, 5.3, 5.7]; WriteLn(TEAMean(TEA)); end.
Output:
3.5