generate samples of a Gaussian random signal - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Science and Engineering : Signal Processing : Signal Generation : SignalProcessing/GenerateGaussian

SignalProcessing[GenerateGaussian] - generate samples of a Gaussian random signal

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

Description

• 

The GenerateGaussian( dst, 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. Otherwise, a random nonnegative integer is used as the seed.

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.04953718734138800.06610569746150500.3548753851847041.011490368157090.2889029078187680.08122770115141160.5879020826194490.3848531907159200.08841796407215240.105533578711158

(1)

c:=Array1..10,'datatype'='float'8,'order'='C_order':

GenerateGaussian10,0,0.3,'container'=c

0.1934399429669020.4329212793645660.009230992978864460.05256759268069050.2837223606263430.2545131676683440.2783757011807500.03096250116014320.2628068366713450.350352787464058

(2)

c

0.1934399429669020.4329212793645660.009230992978864460.05256759268069050.2837223606263430.2545131676683440.2783757011807500.03096250116014320.2628068366713450.350352787464058

(3)

plots:-listplotc

See Also

SignalProcessing[GenerateUniform]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam