tomwalters@0
|
1 .TH COSINE 1 "1 September 1993"
|
tomwalters@0
|
2
|
tomwalters@0
|
3 .SH NAME
|
tomwalters@0
|
4 cosine \- generate a cosine window.
|
tomwalters@0
|
5
|
tomwalters@0
|
6 .SH SYNTAX
|
tomwalters@0
|
7 cosine [options]
|
tomwalters@0
|
8
|
tomwalters@0
|
9 .SH DESCRIPTION
|
tomwalters@0
|
10 Generate a cosine window on the stdout in binary shorts or floats for
|
tomwalters@0
|
11 a given size.
|
tomwalters@0
|
12
|
tomwalters@0
|
13 .SH OPTIONS
|
tomwalters@0
|
14
|
tomwalters@0
|
15 1. size
|
tomwalters@0
|
16
|
tomwalters@0
|
17 The size of the window can be given with time units (ms or s) or samples (no
|
tomwalters@0
|
18 units). Time units are converted to samples using the given
|
tomwalters@0
|
19 `samplerate' option.
|
tomwalters@0
|
20
|
tomwalters@0
|
21 2. Hamming
|
tomwalters@0
|
22
|
tomwalters@0
|
23 The default ("Hamming=off") is a Hann or raised cosine window:
|
tomwalters@0
|
24
|
tomwalters@0
|
25 .nf
|
tomwalters@0
|
26 w[n] = 0.5 [ 1 - cos( TWOPI . n/(N-1) ) ]
|
tomwalters@0
|
27 .fi
|
tomwalters@0
|
28
|
tomwalters@0
|
29 The "Hamming=on" window is:
|
tomwalters@0
|
30
|
tomwalters@0
|
31 .nf
|
tomwalters@0
|
32 w[n] = 0.54 - 0.46 cos( TWOPI . n/(N-1) )
|
tomwalters@0
|
33 .fi
|
tomwalters@0
|
34
|
tomwalters@0
|
35 Both windows are defined for 0 <= n <= N-1 and are assumed to be zero otherwise.
|
tomwalters@0
|
36
|
tomwalters@0
|
37 3. scale
|
tomwalters@0
|
38
|
tomwalters@0
|
39 A scale factor for the output.
|
tomwalters@0
|
40
|
tomwalters@0
|
41 4. type
|
tomwalters@0
|
42
|
tomwalters@0
|
43 Output datatype ("type=short" or "type=float").
|
tomwalters@0
|
44
|
tomwalters@0
|
45 .SH "SEE ALSO"
|
tomwalters@0
|
46 options gauss
|
tomwalters@0
|
47
|
tomwalters@0
|
48 .SH COPYRIGHT
|
tomwalters@0
|
49 .LP
|
tomwalters@0
|
50 Copyright (c) Applied Psychology Unit, Medical Research Council, 1995
|
tomwalters@0
|
51 .LP
|
tomwalters@0
|
52 Permission to use, copy, modify, and distribute this software without fee
|
tomwalters@0
|
53 is hereby granted for research purposes, provided that this copyright
|
tomwalters@0
|
54 notice appears in all copies and in all supporting documentation, and that
|
tomwalters@0
|
55 the software is not redistributed for any fee (except for a nominal
|
tomwalters@0
|
56 shipping charge). Anyone wanting to incorporate all or part of this
|
tomwalters@0
|
57 software in a commercial product must obtain a license from the Medical
|
tomwalters@0
|
58 Research Council.
|
tomwalters@0
|
59 .LP
|
tomwalters@0
|
60 The MRC makes no representations about the suitability of this
|
tomwalters@0
|
61 software for any purpose. It is provided "as is" without express or
|
tomwalters@0
|
62 implied warranty.
|
tomwalters@0
|
63 .LP
|
tomwalters@0
|
64 THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
tomwalters@0
|
65 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
|
tomwalters@0
|
66 THE A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES
|
tomwalters@0
|
67 OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
tomwalters@0
|
68 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
tomwalters@0
|
69 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
tomwalters@0
|
70 SOFTWARE.
|
tomwalters@0
|
71
|