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