asdcal
Amplitude Spectral Density function, which supports blocks, windows, overlap, and averages.
Syntax
asdcal(vec_expr_1, vec_expr_2, type, block_size, overlap, mean-correction, window, averaging method)
Argument
- vec_expr_1
- The time vector of the curve.
- vec_expr_2
- The magnitude vector of the curve.
- type
- A parameter that specifies the type of Amplitude Spectral Analysis that needs to be performed.
- block_size
- The number of elements to be used for each FFT (should be a power of 2).
- overlap
- The number of elements shared between consecutive blocks. This value is a percentage.
- mean-correction
- Determines if the mean has to be subtracted from the curve block or not.
- window
- Specifies the window type that needs to be applied to the curve block.
- averaging method
- Specifies the type of output needed across the block.
Example
Curve Math Vector | Result |
---|---|
x = freq(c1.x[0:4095:1]) |
Given c1, the amplitude spectrum of type FFT magnitude with
true values is created. The parameters set are as
follows:
|
y =
asdcal(c1.x,c1.y,0,4096,75,1,0,1) |
|