GaussDev


The GaussDev function returns a Gaussian random deviate, or random number distributed according to a Gaussian probability density function. The value is obtained from a Normal population having mean 0 and standard deviation 1. To create a table of Gaussian random deviates, use the TGaussDev function.

Syntax

number = GaussDev()

where

    number is a Gaussian Deviate.

Example

The following script creates 3 Gaussian deviates and plots them ordinally:

x = { 1, 2, 3 }

-- create a table with values 1, 2, 3

y = { GaussDev(),GaussDev(),GaussDev() }

-- create table of 3 values

PlotScatter( x, y )

-- plot the tables

The next script does the same thing using Table Functions:

PlotScatter( TSeries(3), TGaussDev(3) )

-- plot the tables

Related Topics

TRand

TGaussDev

CStats class