TSP (libtsp/FI) - FIwinHamm

## FIwinHamm

#### Routine

void FIwinHamm (float win[], int N, double a)

#### Purpose

Generate a Hamming window

#### Description

A Hamming window is specified by the following equation,

                              2 pi i
      win[i] = (1-a) - a cos (------) , i = 0, ..., N-1
                                N-1

The parameter a is 0.46 for a conventional Hamming window, 0.5 for a full raised-cosine window, and 0 for a rectangular window. Note that for the full raised-cosine window, the two end points of the window are zero.

Define the effective window length as the length of a rectangular window which has the same energy as the Hamming window. Then the effective length of the Hamming window is

      L = N - 2a(N+1) + a^2 (3N+5)/2, for N > 3.

#### Parameters

<- float win[]
  Array containing the window values
-> int N
  Number of window values
-> double a
  Window parameter; a=0.46 for a conventional Hamming window, a=0.5 for a full raised-cosine window, a=0 for a rectangular window. The window is non-negative for 0 <= a <= 0.5.

#### Author / revision

P. Kabal Copyright (C) 1996 / Revision 1.13 1996/05/30

#### See Also

FIwinHCos, FIwinKaiser, FIwinRCos

Main Index libtsp