tomwalters@0
|
1 .TH SMOOTH 1 "1 September 1993"
|
tomwalters@0
|
2
|
tomwalters@0
|
3 .SH NAME
|
tomwalters@0
|
4 smooth \- Data smoothing by convolution with Gaussian window.
|
tomwalters@0
|
5
|
tomwalters@0
|
6 .SH SYNTAX
|
tomwalters@0
|
7 smooth [options] [file]
|
tomwalters@0
|
8
|
tomwalters@0
|
9 .SH DESCRIPTION
|
tomwalters@0
|
10 Low-pass filter by convolving the input with a unit area Gaussian window
|
tomwalters@0
|
11 in the time or frequency domain.
|
tomwalters@0
|
12 The transform between domains uses the FFT.
|
tomwalters@0
|
13
|
tomwalters@0
|
14
|
tomwalters@0
|
15 .SH OPTIONS
|
tomwalters@0
|
16
|
tomwalters@0
|
17 1. length
|
tomwalters@0
|
18
|
tomwalters@0
|
19 The amount of input to smooth in time units (ms or s) or samples (no units).
|
tomwalters@0
|
20 Time units are converted to samples using the given `samplerate' option.
|
tomwalters@0
|
21 The string "max" is recognised as the remainder of input.
|
tomwalters@0
|
22
|
tomwalters@0
|
23 2. domain
|
tomwalters@0
|
24
|
tomwalters@0
|
25 Select algorithm for smoothing.
|
tomwalters@0
|
26 In the time domain ("domain=time") the discrete convolution formula is applied
|
tomwalters@0
|
27 directly as a local averaging operation on the input with weights obtained
|
tomwalters@0
|
28 by time-reversing and shifting a Gaussian window.
|
tomwalters@0
|
29 In the frequency domain ("domain=frequency") the FFT of the whole input is
|
tomwalters@0
|
30 multiplied by a Gaussian frequency response function (the FFT of the
|
tomwalters@0
|
31 Gaussian window), and the result inverse FFT'd.
|
tomwalters@0
|
32
|
tomwalters@0
|
33 3. variance, range
|
tomwalters@0
|
34
|
tomwalters@0
|
35 The variance of the Gaussian window and its
|
tomwalters@0
|
36 ordinal range in standard deviations either side of the mode.
|
tomwalters@0
|
37 The window is assumed to be zero for all time outside the specified range.
|
tomwalters@0
|
38 These parameters control the size of the window and consequently the amount
|
tomwalters@0
|
39 of smoothing. The larger the variance, the more smoothing.
|
tomwalters@0
|
40 The size of the window is given by:
|
tomwalters@0
|
41
|
tomwalters@0
|
42 .nf
|
tomwalters@0
|
43 [ 2 * range * sqrt( variance ) ] samples + 1 sample
|
tomwalters@0
|
44 .fi
|
tomwalters@0
|
45
|
tomwalters@0
|
46 The variance can be given with time units (ms or s) or samples (no units).
|
tomwalters@0
|
47 Time units are converted to samples using the given `samplerate' option.
|
tomwalters@0
|
48
|
tomwalters@0
|
49 4. type
|
tomwalters@0
|
50
|
tomwalters@0
|
51 The input and output data type. Recognised types are "short" and "float".
|
tomwalters@0
|
52
|
tomwalters@0
|
53 .SH "SEE ALSO"
|
tomwalters@0
|
54 options gauss filt1 conv
|
tomwalters@0
|
55
|
tomwalters@0
|
56 .SH COPYRIGHT
|
tomwalters@0
|
57 .LP
|
tomwalters@0
|
58 Copyright (c) Applied Psychology Unit, Medical Research Council, 1995
|
tomwalters@0
|
59 .LP
|
tomwalters@0
|
60 Permission to use, copy, modify, and distribute this software without fee
|
tomwalters@0
|
61 is hereby granted for research purposes, provided that this copyright
|
tomwalters@0
|
62 notice appears in all copies and in all supporting documentation, and that
|
tomwalters@0
|
63 the software is not redistributed for any fee (except for a nominal
|
tomwalters@0
|
64 shipping charge). Anyone wanting to incorporate all or part of this
|
tomwalters@0
|
65 software in a commercial product must obtain a license from the Medical
|
tomwalters@0
|
66 Research Council.
|
tomwalters@0
|
67 .LP
|
tomwalters@0
|
68 The MRC makes no representations about the suitability of this
|
tomwalters@0
|
69 software for any purpose. It is provided "as is" without express or
|
tomwalters@0
|
70 implied warranty.
|
tomwalters@0
|
71 .LP
|
tomwalters@0
|
72 THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
tomwalters@0
|
73 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
|
tomwalters@0
|
74 THE A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES
|
tomwalters@0
|
75 OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
tomwalters@0
|
76 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
tomwalters@0
|
77 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
tomwalters@0
|
78 SOFTWARE.
|
tomwalters@0
|
79
|