Signal
Signal processing class for Matrix
class.
- These methods can be used in the
Matrix
method chain. - This class cannot be called directly.
Static Method Summary
Static Public Methods | ||
public static |
conv(x1: KMatrixInputData, x2: KMatrixInputData): Matrix Convolution integral, Polynomial multiplication. |
|
public static |
dct(x: KMatrixInputData, type: KSignalSettings): Matrix Discrete cosine transform (DCT-II, DCT). |
|
public static |
dct2(x: KMatrixInputData): Matrix Discrete two-dimensional cosine transform (2D DCT). |
|
public static |
fft(x: KMatrixInputData, type: KSignalSettings): Matrix Discrete Fourier transform (DFT). |
|
public static |
fft2(x: KMatrixInputData): Matrix Discrete two-dimensional Fourier transform (2D DFT). |
|
public static |
fftshift(x: KMatrixInputData, type: KSignalSettings): Matrix FFT shift. |
|
public static |
hamming(size: KMatrixInputData, periodic: string | number): Matrix Hamming window. |
|
public static |
hann(size: KMatrixInputData, periodic: string | number): Matrix Hann (Hanning) window. |
|
public static |
idct(X: KMatrixInputData, type: KSignalSettings): Matrix Inverse discrete cosine transform (DCT-III, IDCT), |
|
public static |
idct2(X: KMatrixInputData): Matrix Inverse discrete two-dimensional cosine transform (2D IDCT), |
|
public static |
ifft(X: KMatrixInputData, type: KSignalSettings): Matrix Inverse discrete Fourier transform (IDFT), |
|
public static |
ifft2(X: KMatrixInputData): Matrix Inverse discrete two-dimensional Fourier transform (2D IDFT), |
|
public static |
powerfft(x: KMatrixInputData, type: KSignalSettings): Matrix Power spectral density. |
|
public static |
Create window function for signal processing. |
|
public static |
xcorr(x1: KMatrixInputData, x2: KMatrixInputData): Matrix ACF(Autocorrelation function), cros-correlation function. |
Static Public Methods
public static conv(x1: KMatrixInputData, x2: KMatrixInputData): Matrix source
Convolution integral, Polynomial multiplication.
Params:
Name | Type | Attribute | Description |
x1 | KMatrixInputData | ||
x2 | KMatrixInputData |
public static dct(x: KMatrixInputData, type: KSignalSettings): Matrix source
Discrete cosine transform (DCT-II, DCT).
Params:
Name | Type | Attribute | Description |
x | KMatrixInputData | ||
type | KSignalSettings |
|
public static dct2(x: KMatrixInputData): Matrix source
Discrete two-dimensional cosine transform (2D DCT).
Params:
Name | Type | Attribute | Description |
x | KMatrixInputData |
public static fft(x: KMatrixInputData, type: KSignalSettings): Matrix source
Discrete Fourier transform (DFT).
Params:
Name | Type | Attribute | Description |
x | KMatrixInputData | ||
type | KSignalSettings |
|
public static fft2(x: KMatrixInputData): Matrix source
Discrete two-dimensional Fourier transform (2D DFT).
Params:
Name | Type | Attribute | Description |
x | KMatrixInputData |
public static fftshift(x: KMatrixInputData, type: KSignalSettings): Matrix source
FFT shift. Circular shift beginning at the center of the signal.
Params:
Name | Type | Attribute | Description |
x | KMatrixInputData | ||
type | KSignalSettings |
|
public static hamming(size: KMatrixInputData, periodic: string | number): Matrix source
Hamming window.
Params:
Name | Type | Attribute | Description |
size | KMatrixInputData | Window length |
|
periodic | string | number |
|
0/"symmetric" (default) , 1/"periodic" |
public static hann(size: KMatrixInputData, periodic: string | number): Matrix source
Hann (Hanning) window.
Params:
Name | Type | Attribute | Description |
size | KMatrixInputData | Window length |
|
periodic | string | number |
|
0/"symmetric" (default) , 1/"periodic" |
public static idct(X: KMatrixInputData, type: KSignalSettings): Matrix source
Inverse discrete cosine transform (DCT-III, IDCT),
Params:
Name | Type | Attribute | Description |
X | KMatrixInputData | ||
type | KSignalSettings |
|
public static idct2(X: KMatrixInputData): Matrix source
Inverse discrete two-dimensional cosine transform (2D IDCT),
Params:
Name | Type | Attribute | Description |
X | KMatrixInputData |
public static ifft(X: KMatrixInputData, type: KSignalSettings): Matrix source
Inverse discrete Fourier transform (IDFT),
Params:
Name | Type | Attribute | Description |
X | KMatrixInputData | ||
type | KSignalSettings |
|
public static ifft2(X: KMatrixInputData): Matrix source
Inverse discrete two-dimensional Fourier transform (2D IDFT),
Params:
Name | Type | Attribute | Description |
X | KMatrixInputData |
public static powerfft(x: KMatrixInputData, type: KSignalSettings): Matrix source
Power spectral density.
Params:
Name | Type | Attribute | Description |
x | KMatrixInputData | ||
type | KSignalSettings |
|
public static window(name: string, size: KMatrixInputData, periodic: string | number): Matrix source
Create window function for signal processing. The following window functions are available.
- "rectangle": Rectangular window
- "hann": Hann/Hanning window.
- "hamming": Hamming window.
- "blackman": Blackman window.
- "blackmanharris": Blackman-Harris window.
- "blackmannuttall": Blackman-Nuttall window.
- "flattop": Flat top window.
- "sin", Half cycle sine window.
- "vorbis", Vorbis window.
Params:
Name | Type | Attribute | Description |
name | string | Window function name. |
|
size | KMatrixInputData | Window length |
|
periodic | string | number |
|
0/"symmetric" (default) , 1/"periodic" |
public static xcorr(x1: KMatrixInputData, x2: KMatrixInputData): Matrix source
ACF(Autocorrelation function), cros-correlation function.
- If the argument is omitted, it is calculated by the autocorrelation function.
Params:
Name | Type | Attribute | Description |
x1 | KMatrixInputData | ||
x2 | KMatrixInputData |
|
Matrix to calculate the correlation. |