view man/man1/cosine.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
line wrap: on
line source
.TH COSINE 1 "1 September 1993"

.SH NAME
cosine \- generate a cosine window.

.SH SYNTAX 
cosine [options]

.SH DESCRIPTION
Generate a cosine window on the stdout in binary shorts or floats for
a given size.

.SH OPTIONS

1. size

The size of the window can be given with time units (ms or s) or samples (no
units).  Time units are converted to samples using the given
`samplerate' option.

2. Hamming

The default ("Hamming=off") is a Hann or raised cosine window:

.nf
	w[n] = 0.5 [ 1 - cos( TWOPI . n/(N-1) ) ]
.fi

The "Hamming=on" window is:

.nf
	w[n] = 0.54 - 0.46 cos( TWOPI . n/(N-1) )
.fi

Both windows are defined for 0 <= n <= N-1 and are assumed to be zero otherwise.

3. scale

A scale factor for the output.

4. type

Output datatype ("type=short" or "type=float").

.SH "SEE ALSO"
options gauss

.SH COPYRIGHT
.LP
Copyright (c) Applied Psychology Unit, Medical Research Council, 1995
.LP
Permission to use, copy, modify, and distribute this software without fee 
is hereby granted for research purposes, provided that this copyright 
notice appears in all copies and in all supporting documentation, and that 
the software is not redistributed for any fee (except for a nominal 
shipping charge). Anyone wanting to incorporate all or part of this 
software in a commercial product must obtain a license from the Medical 
Research Council.
.LP
The MRC makes no representations about the suitability of this 
software for any purpose.  It is provided "as is" without express or 
implied warranty.
.LP
THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 
THE A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES 
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 
SOFTWARE.