VarWindow (FPScript)
Creates a data taper compatible with a data set.
Syntax
VarWindow(Signal, Window [ , Adjustment ])
The syntax of the VarWindow function consists of the following parts:
Part |
Description |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Signal |
The data set that specifies the sampling for the data window to be calculated. If you specify a signal or signal series, then its X component is used. Permitted data structures are data series, data matrix, signal und signal series. All numeric data types are permitted. If the argument is a list, then the function is executed for each element of the list and the result is also a list. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Window |
The fixed or adjustable data window to be generated. The argument Window can have the following values:
If the argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Adjustment |
The one-sided Fourier width as a multiple of the frequency interval. The valid range is window specific. The default is 1.5 for a tapered cosine window and 3.0 for all other adjustable data windows. Permitted data structures are scalar value. All real data types are permitted. If the argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated. |
Remarks
The result has the same structure as the argument Signal.
The Y component is replaced by the computed data taper, the X and Z components, if present, are copied into the result without modification.
Available in
Option Spectral Analysis
Examples
Dim x = Log10((100,1,1))
VarWindow(Signal(x,x), WIN_TUKEYHANN)
Generates a Tukey-Hann window from the logarithmic data. The X component is copied into the result.