noise
Manual Reference Pages - NOISE (1)
noise - generate samples of a normally distributed deviate (white noise)in binary shorts or floats.
CONTENTS
Syntax
Description
Options
Copyright
SYNTAX
noise [options]
DESCRIPTION
Generate uniformly distributed numbers in the range [0,1] and then convertthese to normally distributed numbers with zero meanand unit variance, using the Box-Muller method described in NumericalRecipes [p203].The period of the random sequences is claimed to be infinite,[Numerical Recipes, p196].The random sequence is written to the stdout in binary numbers which areeither shorts or floats depending upon the type option.The duration options sets the duration of the output sequence in samples,converted from time units (s or ms) using the given samplerate option.
OPTIONS
1. mean, variance.
Each sample is scaled using the given mean and variance parameters so thatsamples are drawn from a normal distribution of given mean and variance.
2. seed
When seed=off the system call getpid() is used to supply a new seed each run.Otherwise the seed can be set in order to give the same initialization togenerate the same random sequence on different runs.
COPYRIGHT
Copyright (c) Applied Psychology Unit, Medical Research Council, 1995
Permission to use, copy, modify, and distribute this software without feeis hereby granted for research purposes, provided that this copyrightnotice appears in all copies and in all supporting documentation, and thatthe software is not redistributed for any fee (except for a nominalshipping charge). Anyone wanting to incorporate all or part of thissoftware in a commercial product must obtain a license from the MedicalResearch Council.
The MRC makes no representations about the suitability of thissoftware for any purpose. It is provided "as is" without express orimplied warranty.
THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDINGALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALLTHE A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGESOR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THISSOFTWARE.
| SunOS 5.6 | NOISE (1) | 1 September 1993 |