Mercurial > hg > aim92
comparison man/man1/noise.1 @ 0:5242703e91d3 tip
Initial checkin for AIM92 aimR8.2 (last updated May 1997).
author | tomwalters |
---|---|
date | Fri, 20 May 2011 15:19:45 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:5242703e91d3 |
---|---|
1 .TH NOISE 1 "1 September 1993" | |
2 | |
3 .SH NAME | |
4 noise \- generate samples of a normally distributed deviate (white noise) | |
5 in binary shorts or floats. | |
6 | |
7 .SH SYNTAX | |
8 noise [options] | |
9 | |
10 .SH DESCRIPTION | |
11 Generate uniformly distributed numbers in the range [0,1] and then convert | |
12 these to normally distributed numbers with zero mean | |
13 and unit variance, using the Box-Muller method described in Numerical | |
14 Recipes [p203]. | |
15 The period of the random sequences is claimed to be infinite, | |
16 [Numerical Recipes, p196]. | |
17 The random sequence is written to the stdout in binary numbers which are | |
18 either shorts or floats depending upon the `type' option. | |
19 The `duration' options sets the duration of the output sequence in samples, | |
20 converted from time units (s or ms) using the given `samplerate' option. | |
21 | |
22 .SH OPTIONS | |
23 | |
24 1. mean, variance. | |
25 | |
26 Each sample is scaled using the given mean and variance parameters so that | |
27 samples are drawn from a normal distribution of given mean and variance. | |
28 | |
29 2. seed | |
30 | |
31 When seed=off the system call getpid() is used to supply a new seed each run. | |
32 Otherwise the seed can be set in order to give the same initialization to | |
33 generate the same random sequence on different runs. | |
34 | |
35 .SH COPYRIGHT | |
36 .LP | |
37 Copyright (c) Applied Psychology Unit, Medical Research Council, 1995 | |
38 .LP | |
39 Permission to use, copy, modify, and distribute this software without fee | |
40 is hereby granted for research purposes, provided that this copyright | |
41 notice appears in all copies and in all supporting documentation, and that | |
42 the software is not redistributed for any fee (except for a nominal | |
43 shipping charge). Anyone wanting to incorporate all or part of this | |
44 software in a commercial product must obtain a license from the Medical | |
45 Research Council. | |
46 .LP | |
47 The MRC makes no representations about the suitability of this | |
48 software for any purpose. It is provided "as is" without express or | |
49 implied warranty. | |
50 .LP | |
51 THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | |
52 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | |
53 THE A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES | |
54 OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | |
55 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | |
56 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | |
57 SOFTWARE. | |
58 |