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...")
 
 
Line 8: Line 8:
  
 
==Description==
 
==Description==
Returns the corresponding y value for the given '''x''' value with a given '''Mean''' and '''Variance''' from the [http://en.wikipedia.org/wiki/Gaussian_function Gauss function].
+
Returns the corresponding y value for the given '''x''' value with a given '''Mean''' and '''Variance''' from the [http://en.wikipedia.org/wiki/Gaussian_function Gaussian function].
  
 
==Example==
 
==Example==

Latest revision as of 22:46, 19 October 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 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