A RandomNoise node will generate random values that should be uniformly distributed over some range specified by lower and upper bounds. You must specify the lower and upper bounds when creating the node - otherwise you will get a crash when you try to execute a script where the bounds have not been defined. Optionally, you may specify a seed value, which will cause all RandomNoise nodes to generate the same sequence of values each time you run your script.

Here are some examples:

ns['noise1'] << Meq.RandomNoise(1.0,5.0)
ns['noise2'] << Meq.RandomNoise(30.0,40.0)
ns['noise3'] << Meq.RandomNoise(100.0, 200.0, seed=154321)

The MeqTree RandomNoise node uses the standard linux random() function to generate random numbers. In examples such as the ones above, where one node has been explicitly seeded, this seeding actually causes all RandomNoise nodes to be seeded with the value 154321.

MeqRandomNoise (last edited 2007-05-24 23:41:26 by TonyWillis)