SignalProcessing
GenerateUniform
generate samples of a uniformly distributed pseudo-random signal
Calling Sequence
Parameters
Options
Description
Thread Safety
Examples
Compatibility
GenerateUniform(n, low, high)
n
-
posint, number of samples
low
realcons, lower bound of the uniform distribution range
hi
realcons, upper bound of the uniform distribution range
container : Array, predefined Array for holding results
seed : nonnegint, seed for the pseudo-random number generator
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.
The SignalProcessing[GenerateUniform] command is thread-safe as of Maple 17.
For more information on thread safety, see index/threadsafe.
with⁡SignalProcessing:
GenerateUniform⁡10,−1,1
0.9958675736749190.4083375294118190.167610888327636−0.2468588373222460.432866472071836−0.4399798582161470.4329013102693530.481379433115581−0.4776970633728260.0288390346482901
c≔Array⁡1..10,datatype=float8,order=C_order:
GenerateUniform⁡10,−1,1,container=c
−0.545369867754208−0.3261160447254520.6263739238191340.559925029969611−0.373917395136553−0.09195902641578850.819334052606265−0.363816344712829−0.4392851528362730.797210991320126
c
SignalPlot⁡c
The SignalProcessing[GenerateUniform] command was introduced in Maple 17.
For more information on Maple 17 changes, see Updates in Maple 17.
See Also
GenerateGaussian
Download Help Document