KernelProcessor<T>.GetOutputLength Method

Calculates the expected output length for a given signal length based on the convolution mode.

Definition

Namespace: Numerics.NET.SignalProcessing
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
C#
public int GetOutputLength(
	int signalLength
)

Parameters

signalLength  Int32
The length of the input signal.

Return Value

Int32
The expected output length after convolution or correlation.

Remarks

Output length depends on the Mode property:

  • FullLength: Returns signalLength + kernelLength - 1 (all positions where signal and kernel overlap)
  • SameAsSignal: Returns signalLength (same length as the signal)
  • NoPadding: Returns max(0, signalLength - kernelLength + 1) (only positions with full overlap)

See Also