Gauss

From SCAR Divi Manual
Jump to: navigation, search

Definition

function Gauss(const x, Mean, Variance: Extended): Extended;

Availability

SCAR Divi 3.28 > Current

Description

Returns the corresponding y value for the given x value with a given Mean and Variance from the Gaussian function.

Example

begin
  WriteLn(Gauss(0, 0, 0.2));
  WriteLn(Gauss(0, 0, 0.5));
  WriteLn(Gauss(0, 0, 2));
  WriteLn(Gauss(0, 0, 5));
end.

Output:

0,892062058076386
0,564189583547756
0,282094791773878
0,178412411615277

See Also