Difference between revisions of "TIAMean"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function TIAMean(const TIA: TIntArray): Extended; </source> ==Availability== SCAR Divi 3.28 > Current ==Description== Returns ...")
 
Line 27: Line 27:
 
[[Category:TIA Functions]]
 
[[Category:TIA Functions]]
 
[[Category:Array Functions]]
 
[[Category:Array Functions]]
 +
[[Category:Math Functions]]

Revision as of 21:25, 23 October 2011

Definition

function TIAMean(const TIA: TIntArray): Extended;

Availability

SCAR Divi 3.28 > Current

Description

Returns the arithmetic mean of the integer values in the given TIntArray TIA.

Example

var
  TIA: TIntArray;

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

Output:

3