function MeanG(const Data: TVec): Double;
Geometric mean.
| # | Name | Description |
|---|---|---|
| 1 | Data | Data. An exception is raised if Data is complex. |
Returns: Double - the geometric mean of given values.
Examples
Uses MtxExpr, Statistics, Math387;
procedure Example;
var a: Vector;
MG : double;
begin
a.SetIt(false,[2,0.1,3,4]);
MG := MeanG(a); // MG = 1.24466595457696
end;
See Also: Statistics.MeanH, Statistics.MeanT