TIAMean

From SCAR Divi Manual
Revision as of 15:31, 12 December 2012 by Freddy (talk | contribs)
Jump to: navigation, search

Definition

function TIAMean(const TIA: TIntArray): Extended;

Availability

SCAR Divi 3.28 > Current

Notes

  • Before 3.38, the function returned 0 when TIA was empty.

Description

Returns the arithmetic mean of the integer values in the given TIntArray TIA. Throws an exception if TIA is empty.

Example

var
  TIA: TIntArray;

begin
  TIA := [1, 1, 5, 5];
  WriteLn(TIAMean(TIA));
end.

Output:

3

See Also