TEAMean

From SCAR Divi Manual
Revision as of 15:33, 12 December 2012 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function TEAMean(const TEA: TExtArray): Extended; </source> ==Availability== SCAR Divi 3.38 > Current ==Description== Retur...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function TEAMean(const TEA: TExtArray): Extended;

Availability

SCAR Divi 3.38 > Current

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

See Also