/* welch.h */ #ifndef _INC_WELCH_H #define _INC_WELCH_H /* welchseg windows */ #define HAMMWND 0 /* welchseg flags */ #define WELCH_F_TABLE 0x0001 /* return list of each PSD segment */ #define WELCH_F_SQRT 0x0002 /* normalize for spectrum */ #define WELCH_F_FULL 0x0004 /* full PSD/spectrum frequencies */ #define WELCH_F_ZPAD 0x0008 /* zero pad short columns */ #define WELCH_F_FFTS 0x0010 /* return FFTs */ #define WELCH_F_TRANSP 0x0020 /* transpose table */ #define WELCH_F_DEMEAN 0x0040 /* demean columns */ #define WELCH_F_DETREND 0x0080 /* remove linear trend from columns */ #define WELCH_F_WCOH 0x0100 /* compute Pxy, Pxx, Pyy */ #define WELCH_F_CPSD 0x0200 /* compute Pxy */ #define WELCH_F_GOERTZEL 0x0400 /* use Goertzel algorith */ /* welch specgram */ #define WELCH_F_SPECGRAM (WELCH_F_TABLE + WELCH_F_SQRT + WELCH_F_ZPAD + WELCH_F_TRANSP) /* welch PSD - pwelch.spl */ #define WELCH_F_PSD 0x00 #endif