KernelProcessor<T>.Correlate Method

Definition

Namespace: Numerics.NET.SignalProcessing
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0

Overload List

Correlate(Vector<T>) Computes the cross-correlation of a vector with the stored kernel (allocating).
Correlate(ReadOnlySpan<T>, Span<T>) Computes the cross-correlation of a signal with the stored kernel.
Correlate(Vector<T>, Vector<T>) Computes the cross-correlation of a vector with the stored kernel (non-allocating).
Correlate(Int32, ReadOnlySpan<T>, Int32, Int32, Span<T>, Int32) Computes the cross-correlation of a signal with the stored kernel.

Correlate(Vector<T>)

Computes the cross-correlation of a vector with the stored kernel (allocating).
C#
public Vector<T> Correlate(
	Vector<T> signal
)

Parameters

signal  Vector<T>
The input signal vector.

Return Value

Vector<T>
A vector containing the correlation result.

Correlate(ReadOnlySpan<T>, Span<T>)

Computes the cross-correlation of a signal with the stored kernel.
C#
public void Correlate(
	ReadOnlySpan<T> signal,
	Span<T> result
)

Parameters

signal  ReadOnlySpan<T>
The input signal.
result  Span<T>
The output span to hold the correlation result.

Correlate(Vector<T>, Vector<T>)

Computes the cross-correlation of a vector with the stored kernel (non-allocating).
C#
public void Correlate(
	Vector<T> signal,
	Vector<T> output
)

Parameters

signal  Vector<T>
The input signal vector.
output  Vector<T>
The output vector to hold the correlation result.

Correlate(Int32, ReadOnlySpan<T>, Int32, Int32, Span<T>, Int32)

Computes the cross-correlation of a signal with the stored kernel.
C#
public abstract void Correlate(
	int signalLength,
	ReadOnlySpan<T> signal,
	int signalStride,
	int resultLength,
	Span<T> result,
	int resultStride
)

Parameters

signalLength  Int32
The length of the signal.
signal  ReadOnlySpan<T>
The input signal.
signalStride  Int32
The stride between successive elements in the signal.
resultLength  Int32
The length of the result.
result  Span<T>
The output span to hold the correlation result.
resultStride  Int32
The stride between successive elements in the result.

See Also