cosine
Manual Reference Pages - COSINE (1)
cosine - generate a cosine window.
CONTENTS
Syntax
Description
Options
Copyright
SYNTAX
cosine [options]
DESCRIPTION
Generate a cosine window on the stdout in binary shorts or floats fora given size.
OPTIONS
1. size
The size of the window can be given with time units (ms or s) or samples (nounits). Time units are converted to samples using the givensamplerate option.
2. Hamming
The default ("Hamming=off") is a Hann or raised cosine window:
w[n] = 0.5 [ 1 - cos( TWOPI . n/(N-1) ) ]The "Hamming=on" window is:
w[n] = 0.54 - 0.46 cos( TWOPI . n/(N-1) )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").
SEE ALSO
options gauss
COPYRIGHT
Copyright (c) Applied Psychology Unit, Medical Research Council, 1995
Permission to use, copy, modify, and distribute this software without feeis hereby granted for research purposes, provided that this copyrightnotice appears in all copies and in all supporting documentation, and thatthe software is not redistributed for any fee (except for a nominalshipping charge). Anyone wanting to incorporate all or part of thissoftware in a commercial product must obtain a license from the MedicalResearch Council.
The MRC makes no representations about the suitability of thissoftware for any purpose. It is provided "as is" without express orimplied warranty.
THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDINGALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALLTHE A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGESOR 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 THISSOFTWARE.
| SunOS 5.6 | COSINE (1) | 1 September 1993 |