comparison man/man1/acgram.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 ACGRAM 1 "1 September 1993"
2
3 .SH NAME
4 acgram \- Autocorrelogram auditory image.
5
6 .SH SYNTAX
7 acgram [arguments] [file]
8
9
10 .SH DESCRIPTION
11 Short-time autocorrelation function applied to each row of input frames.
12 Output frames consist of row-wise autocorrelation coefficients.
13 The autocorrelation function (acf) is computed using the fft. Strictly
14 speaking this generates an autocovariance function, but an optional
15 normalization (dividing each coefficient by the zeroth coefficient) produces
16 the autocorrelation function.
17
18 The program expects to read an AIM header, and interprets input as one large
19 frame in column-wise format (eg output from genbmm, gennap, etc.), to be
20 divided into input frames, each to be processed as an autocorrelogram.
21 A new header is constructed, and each autocorrelogram frame is output in
22 row-wise format (eg as if output from gensai).
23
24 The input is divided into frames according to the given options.
25 The options 'start' and 'length' specify the input file.
26 The special option value length=max specifies all the input file from
27 the given start to its end.
28 The options 'width' and 'frstep' specify the input frames.
29 The width option is the framewidth of each input frame and the frstep
30 option is the frameshift between input frames in the input file.
31 The special option value width=max specifies the input framewidth as equal
32 to the given input file length, (and if this is also 'max', then the
33 input framewidth is the remainder of the input file).
34
35 Most options in the input header are copied to the output header.
36 This enables options which are needed for the eventual display
37 to pass straight through. Some options are set so that they can override
38 the input header. For example, the display option is set on to enable
39 display even when input has display=off. The animate option can be set on
40 even when the input has animate=off.
41 Some parts of the header are changed for the output format:
42 (frames, frameshift, framewidth, frameheight, framebytes).
43
44 Each row of each input frame is padded with zeroes to the next
45 power of 2 larger than either the original input framewidth or twice the
46 max acf lag (whichever is the larger).
47 If necessary, extra padding can be enforced using the (silent) padding option
48 to add extra zeroes, padding to a larger power of 2.
49 The amount of extra padding is 'exponential', expanding the basic size to:
50 .nf
51 ( framewidth + padding ) * 2**n
52
53 where the padding option is n.
54 .fi
55
56 (n=0 by default, so that no extra padding is added. When n=1 then padding is
57 added to double the size, and when n=2 the size is quadrupled, etc.).
58
59 .SH EXAMPLES
60
61 1. Autocorrelogram of a NAP, animated and normalized, with max lag 16ms:
62
63 gennap len=128ms output=stdout display=off file | acgram lag=16ms norm=on \
64 anim=on > file.sai
65
66 gensai useprev=on headr=5 top=1000 file -(for landscape plot)
67
68 genspl useprev=on headr=5 top=1000 pensize=2 file -(for spiral plot)
69
70 2. Autocorrelogram of an SAI:
71 (gensai removes file.sai, so you must use some other name, eg foo.sai).
72
73 gensai len=64 pwidth=64 nwidth=0 output=stdout display=off file | \
74 saitonap frame=3 | acgram lag=32ms frame=1 > foo.sai
75
76 gensai useprev=on top=1000 headr=5 mag=2 foo
77
78
79 .SH COPYRIGHT
80 .LP
81 Copyright (c) Applied Psychology Unit, Medical Research Council, 1995
82 .LP
83 Permission to use, copy, modify, and distribute this software without fee
84 is hereby granted for research purposes, provided that this copyright
85 notice appears in all copies and in all supporting documentation, and that
86 the software is not redistributed for any fee (except for a nominal
87 shipping charge). Anyone wanting to incorporate all or part of this
88 software in a commercial product must obtain a license from the Medical
89 Research Council.
90 .LP
91 The MRC makes no representations about the suitability of this
92 software for any purpose. It is provided "as is" without express or
93 implied warranty.
94 .LP
95 THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
96 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
97 EVENT SHALL THE A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR
98 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
99 USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
100 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
101 PERFORMANCE OF THIS SOFTWARE.
102
103
104