SignalProcessing - Maple Help

Online Help

All Products    Maple    MapleSim


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

SignalProcessing

  

GenerateUniform

  

generate samples of a uniformly distributes pseudo-random signal

 

Calling Sequence

Parameters

Options

Description

Thread Safety

Examples

Compatibility

Calling Sequence

GenerateUniform(n, low, high)

Parameters

n

-

posint, number of samples

low

-

realcons, lower bound of the uniform distribution range

hi

-

realcons, upper bound of the uniform distribution range

Options

• 

container : Array, predefined Array for holding results

• 

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

Description

• 

The GenerateUniform(n, low, high) command generates n floating-point samples of a uniformly distributed pseudo-random signal with values between the values of low and high. 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[GenerateUniform]  command is thread-safe as of Maple 17.

• 

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

Examples

withSignalProcessing:

GenerateUniform10,1,1

0.7852184921503080.5884139649570000.9931658226996680.9215782885439710.03878017095848920.01360579254105690.2107569728977980.7496002158150090.1389663578011100.212285134010017

(1)

cArray1..10,'datatype'='float'8,'order'='C_order':

GenerateUniform10,1,1,'container'=c

0.3383668018504980.9911206602118920.4889128464274120.2184583609923720.9771668855100890.1715928046032790.4460237682797020.4972116672433920.08889815956354160.799259962048383

(2)

c

0.3383668018504980.9911206602118920.4889128464274120.2184583609923720.9771668855100890.1715928046032790.4460237682797020.4972116672433920.08889815956354160.799259962048383

(3)

plots:-listplotc

Compatibility

• 

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

• 

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

See Also

SignalProcessing[GenerateGaussian]

 


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