Signal Processing Plugins
Prev
Next

Signal Processing Plugins

Kst provides various plugins to help you easily process signals.

Autocorrelation

The autocorrelation plugin calculates correlation values between a series (vector) and a lagged version of itself, using lag values from floor(-(N-1)/2) to floor((N-1)/2), where N is the number of points in the data set. The time vector is not an input as it is assumed that the data is sampled at equal time intervals. The correlation value r at lag k is:

Autocorrelation formula



Inputs

Array (vector)

The array x of values to calculate correlation values for.

Outputs

Step Value (vector)

The array of step, or lag values.

Auto-correlated (vector)

The array of correlation values calculated using the corresponding step number in the Step Number vector.

Crosscorrelation

The crosscorrelation plugin calculates correlation values between two series (vectors) x and y, using lag values from floor(-(N-1)/2) to floor((N-1)/2), where N is the number of elements in the longer vector. The shorter vector is padded to the length of the longer vector using 0s. The time vector is not an input as it is assumed that the data is sampled at equal time intervals. The correlation value r at lag k is:

crosscorrelation formula



Inputs

Array One (vector)

The array x used in the cross-correlation formula.

Array Two (vector)

The array y used in the cross-correlation formula.

Outputs

Step value (vector)

The array of step, or lag values.

Correlation (vector)

The array of correlation values calculated using the corresponding step number in the Step value vector.

Cross Power Spectrum

The cross power spectrum plugin takes two vectors and calculates the FFT of their cross-correlation values.



Inputs

Vector One/Two

The two vectors used to calculate the cross power spectrum

FFT Length= 2^ (scalar)

Refers to FFT options in Spectrum

Sample rate (scalar)

Refers to FFT options in Spectrum

Outputs

Cross Spectrum: Real(vector)

The real part of the calculated cross power spectrum.

Cross Spectrum: Imaginary (vector)

The imaginary part of the calculated cross power spectrum.

Frequency (vector)

The frequency vector of the output cross power spectrum.

Convolution

The convolution plugin generates the convolution of one vector with another. The convolution of two functions f and g is given by:

The order of the vectors does not matter, since f*g=g*f. In addition, the vectors do not need to be of the same size, as the plugin will automatically interpolate smallest vector to the larger length.



Inputs

Array One (vector)

One of the pair of arrays to take the convolution of.

Array Two (vector)

One of the pair of arrays to take the convolution of.

Outputs

Convolved (vector)

The convolution of the two input vectors.

Deconvolution

The deconvolution plugin generates the deconvolution of one vector with another. Deconvolution is the inverse of convolution. Given the convolved vector h and another vector g, the deconvolution f is given by:

The vectors do not need to be of the same size, as the plugin will automatically extrapolate the shorter vector. The shorter vector is assumed to be the response function g.



Inputs

Array One (vector)

One of the pair of arrays to take the deconvolution of.

Array Two (vector)

One of the pair of arrays to take the deconvolution of.

Outputs

Deconvolved (vector)

The deconvolution of the two input vectors.

Periodogram

The periodogram plugin produces the periodogram of a given data set. Periodogram is an estimate of the spectral density of a signal.



Inputs

Time Array (vector)

The array of time values of the data points to generate the interpolation for.

Data Array (vector)

The array of data values, dependent on the time values of the data points to generate the interpolation for.

Oversampling factor (scalar)

The factor to oversample by.

Average Nyquist frequency factor (scalar)

The average Nyquist frequency factor.

Outputs

Frequency (vector)

The frequency vector.

Periodogram (vector)

The frequency response vector for the periodogram.

Prev
Next
Home


Would you like to make a comment or contribute an update to this page?
Send feedback to the KDE Docs Team