Difference between revisions of "Gauss"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function Gauss(const x, Mean, Variance: Extended): Extended; </source> ==Availability== SCAR Divi 3.28 > Current ==Description...")
(No difference)

Revision as of 11:32, 23 September 2011

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 Gauss 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