GenerateGaussian - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


SignalProcessing

  

GenerateGaussian

  

generate samples of a Gaussian random signal

 

Calling Sequence

Parameters

Options

Description

Thread Safety

Examples

Compatibility

Calling Sequence

GenerateGaussian(n, mean, stddev)

Parameters

n

-

posint, number of samples

mean

-

realcons, mean of the Gaussian distribution

stddev

-

realcons, standard deviation of the Gaussian distribution

Options

• 

container : Array, predefined Array for holding results

• 

seed : nonnegint, seed for the pseudo-random number generator

Description

• 

The GenerateGaussian( n, mean, stddev, seed ) command generates n floating-point samples for a random signal with a Gaussian distribution of mean mean and with standard deviation stddev. The results are returned in an Array with datatype float[8].

• 

If the container=C option is provided, then the results are put into C and C is returned. With this option, no additional memory is allocated to store the result. The container must be an Array of size n having datatype float[8].

• 

If the seed option is provided, the given value is used as the seed for the pseudo-random number generator.

Thread Safety

• 

The SignalProcessing[GenerateGaussian] command is thread-safe as of Maple 17.

• 

For more information on thread safety, see index/threadsafe.

Examples

withSignalProcessing:

GenerateGaussian10,0,0.3

0.0495371873412778−0.06610569746135800.354875385184700−1.011490368157070.288902907818719−0.08122770115139790.5879020826194300.3848531907159090.0884179640720818−0.105533578711073

(1)

cArray1..10,datatype=float8,order=C_order:

GenerateGaussian10,0,0.3,container=c

0.1934399429668890.432921279364537−0.00923099297881528−0.0525675926804104−0.283722360626314−0.254513167668317−0.2783757011806960.0309625011601372−0.2628068366713250.350352787464030

(2)

c

0.1934399429668890.432921279364537−0.00923099297881528−0.0525675926804104−0.283722360626314−0.254513167668317−0.2783757011806960.0309625011601372−0.2628068366713250.350352787464030

(3)

SignalPlotc

Compatibility

• 

The SignalProcessing[GenerateGaussian] command was introduced in Maple 17.

• 

For more information on Maple 17 changes, see Updates in Maple 17.

See Also

GenerateUniform