tomwalters@0
|
1 .TH ACF 1 "15 September 1993"
|
tomwalters@0
|
2
|
tomwalters@0
|
3 .SH NAME
|
tomwalters@0
|
4 acf \- autocorrelation function of contiguous frames.
|
tomwalters@0
|
5 .nf
|
tomwalters@0
|
6 i/p and o/p data in binary shorts, (o/p data n/2 points per frame).
|
tomwalters@0
|
7 .fi
|
tomwalters@0
|
8
|
tomwalters@0
|
9 .SH SYNTAX
|
tomwalters@0
|
10 acf [arguments] [file]
|
tomwalters@0
|
11
|
tomwalters@0
|
12
|
tomwalters@0
|
13 .SH DESCRIPTION
|
tomwalters@0
|
14 The autocorrelation function (acf) is computed using the fft.
|
tomwalters@0
|
15 The output framewidth is the given maximum acf lag, which must not be
|
tomwalters@0
|
16 greater than the input framewidth.
|
tomwalters@0
|
17 Each input frame is padded with zeroes to the next power of 2 larger than
|
tomwalters@0
|
18 either the input framewidth, or twice the required max acf lag, (whichever
|
tomwalters@0
|
19 is the larger).
|
tomwalters@0
|
20 If necessary, extra padding can be enforced using the (silent) padding option
|
tomwalters@0
|
21 to add extra zeroes, padding to a larger power of 2.
|
tomwalters@0
|
22 The amount of extra padding is "exponential", expanding the basic size to:
|
tomwalters@0
|
23
|
tomwalters@0
|
24 ( framesize + padding ) * 2**n
|
tomwalters@0
|
25
|
tomwalters@0
|
26 where the padding option is n.
|
tomwalters@0
|
27
|
tomwalters@0
|
28
|
tomwalters@0
|
29 (n=0 by default, so that no extra padding is added. When n=1 then padding is
|
tomwalters@0
|
30 added to double the size, and when n=2 the size is quadrupled, etc.).
|
tomwalters@0
|
31 The input and output frame sizes in sample points may be printed using the
|
tomwalters@0
|
32 "size" option.
|
tomwalters@0
|
33
|
tomwalters@0
|
34
|
tomwalters@0
|
35 .SH EXAMPLES
|
tomwalters@0
|
36 .nf
|
tomwalters@0
|
37 1. To print the input and output frame sizes in sample points,
|
tomwalters@0
|
38 eg for a subsequent plotting program, use the size option:
|
tomwalters@0
|
39
|
tomwalters@0
|
40 acf ... size=on
|
tomwalters@0
|
41
|
tomwalters@0
|
42
|
tomwalters@0
|
43 2. An acf of a waveform sampled at 10kHz, computed to a max lag
|
tomwalters@0
|
44 of 12.8ms within a frame of 12.8ms, plotting the 2nd frame in
|
tomwalters@0
|
45 a sequence of frames with frameshift 12.8ms.
|
tomwalters@0
|
46
|
tomwalters@0
|
47 acf samp=10kHz width=12.8ms frstep=12.8ms frame=2 lag=12.8ms file
|
tomwalters@0
|
48 | x11plot
|
tomwalters@0
|
49
|
tomwalters@0
|
50 3. An animated plot of successive acf's of a waveform sampled at
|
tomwalters@0
|
51 10kHz, each computed within a frame of 12.8ms, and shifted by
|
tomwalters@0
|
52 2 sample points.
|
tomwalters@0
|
53
|
tomwalters@0
|
54 acf samp=10kHz width=12.8ms frstep=2p lag=12.8ms file
|
tomwalters@0
|
55 | x11play -n128
|
tomwalters@0
|
56
|
tomwalters@0
|
57 .fi
|
tomwalters@0
|
58
|
tomwalters@0
|
59 .SH COPYRIGHT
|
tomwalters@0
|
60 .LP
|
tomwalters@0
|
61 Copyright (c) Applied Psychology Unit, Medical
|
tomwalters@0
|
62 Research Council, 1995 .LP Permission to use, copy, modify, and
|
tomwalters@0
|
63 distribute this software without fee is hereby granted for research
|
tomwalters@0
|
64 purposes, provided that this copyright notice appears in all copies
|
tomwalters@0
|
65 and in all supporting documentation, and that the software is not
|
tomwalters@0
|
66 redistributed for any fee (except for a nominal shipping
|
tomwalters@0
|
67 charge). Anyone wanting to incorporate all or part of this software in
|
tomwalters@0
|
68 a commercial product must obtain a license from the Medical Research
|
tomwalters@0
|
69 Council. .LP The MRC makes no representations about the suitability
|
tomwalters@0
|
70 of this software for any purpose. It is provided "as is" without
|
tomwalters@0
|
71 express or implied warranty.
|
tomwalters@0
|
72 .LP
|
tomwalters@0
|
73 THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
tomwalters@0
|
74 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
tomwalters@0
|
75 EVENT SHALL THE A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
tomwalters@0
|
76 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
|
tomwalters@0
|
77 USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
tomwalters@0
|
78 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
tomwalters@0
|
79 PERFORMANCE OF THIS SOFTWARE.
|
tomwalters@0
|
80
|
tomwalters@0
|
81
|
tomwalters@0
|
82
|
tomwalters@0
|
83
|
tomwalters@0
|
84
|
tomwalters@0
|
85
|