TransferFunction (FPScript)
Computes the transfer function between an input and an output data set.
Syntax
TransferFunction(InputSignal, OutputSignal, [ SpectrumType = TRANSFERFUNCTION_COMPLEX ], [ Window = WIN_HANNING ], [ Adjustment ], [ SegmentLength = 0 ], [ OverlapOrGap = 50 ], [ FFTLength = 0 ] [ , Peaks ])
The syntax of the TransferFunction function consists of the following parts:
Part |
Description |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
InputSignal |
The input data set to be analyzed. Permitted data structures are data series, data matrix, signal und signal series. All real data types are permitted, except calendar time und time span. Void values are not permitted in this argument. For the X component additional restrictions do apply.The values must have a constant positive spacing. Void values are not permitted in this argument. If the argument is a list, then the function is executed for each element of the list and the result is also a list. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
OutputSignal |
The output data set to be analyzed. Permitted data structures are data series, data matrix, signal und signal series. All real data types are permitted, except calendar time und time span. Void values are not permitted in this argument. For the X component additional restrictions do apply.The values must have a constant positive spacing. Void values are not permitted in this argument. If the argument is a list, then the function is executed for each element of the list and the result is also a list. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SpectrumType |
The transfer function format to be computed. The argument SpectrumType can have the following values:
Permitted data structures are scalar value. All integral 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. If this argument is omitted, it will be set to the default value TRANSFERFUNCTION_COMPLEX. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Window |
The fixed or adjustable data window to be applied to the data. The argument Window can have the following values:
Permitted data structures are scalar value. All integral 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. If this argument is omitted, it will be set to the default value WIN_HANNING. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SegmentLength |
The length of individual data segments. The valid range is between 2 and the data length. The default value of 0 sets the segment length to the data length. Permitted data structures are scalar value. All integral 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. If this argument is omitted, it will be set to the default value 0. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
OverlapOrGap |
If this argument is specified as a positive number, then it specifies the percentage overlap of the individual data segments. If it is specified as a negative number, then its amount specifies the gap between the individual data segments in samples. Permitted data structures are scalar value. All real data types are permitted. The value must be less or equal to 95. 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. If this argument is omitted, it will be set to the default value 50. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FFTLength |
The length of the Fourier transform. Zero padding applies if the FFT length is greater than the segment length. The valid range is from the segment length to the maximum limit of FFT. The default value is 0, which sets the FFT length equal to the segment length. Permitted data structures are scalar value. All integral data types are permitted. The value must be greater or equal to 0 and less or equal to 2147483648. 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. If this argument is omitted, it will be set to the default value 0. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Peaks |
If specified, then only band-interpolated peaks of the spectrum are output. The peaks can be specified as a number of peaks or determined using a dB threshold. Specify a number as a positive number from 1 to 100 without a unit. You can specify a dB threshold as a quantity with the unit dB between 0.01 dB and 300 dB, or as a negative number between -0.01 and -300 without a unit. 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 data structure of the result is a signal or signal series. If the argument InputSignal is a data series or data matrix, then the X component of the result contains Nyquist-normalized frequencies. If both data sets have an X component, then these must be identical. The number of values in each data set and, in case of data matrices or signal series, also the number of columns must match. For example, you can combine a signal series with a signal. In this case the spectrum of the signal is combined with the spectra of each column in the signal series.
Available in
Option Spectral Analysis
Examples
Dim s = Signal(Chirp((1000, 0, 0.001), 1, 500, 1), (1000, 0, 0.001))
Dim iir = Filter(s, IIRFilter(FILTER_BUTTERWORTH, FILTER_BANDPASS, 4, {0.1, 0.3}, 0.1, 0.1, FILTER_DELTA))
TransferFunction(s, iir, TRANSFERFUNCTION_AMPLITUDE, WIN_HAMMING + WIN_NORMALIZEAMPLITUDE, 2, 0, 50, 0)
Calculates the IIR filtering transfer function. The filtering input data set is a swept-frequency cosine signal.