Table of Contents

Enum Padding

Namespace
SignalSharp.Common.Models
Assembly
SignalSharp.dll

Enumeration representing different padding modes for signal processing.

public enum Padding

Fields

Constant = 1

The signal is padded by a specified constant value. This mode adds a constant value to the boundaries, useful for maintaining a fixed boundary condition.

Mirror = 2

The signal is mirrored around the boundary points. Values at the boundary are reflected to the other side, creating a symmetric padding. This helps to minimize edge artifacts in some signal processing operations.

Nearest = 3

The signal is padded by replicating the first value at the lower boundary and the last value at the upper boundary. This creates a step-like extension at the boundaries, maintaining the edge value.

None = 0

The signal is not padded. No additional values are added to the signal at the boundaries.

Periodic = 4

The signal is treated as periodic. The end of the signal wraps around to the start, making the signal repeat itself. This is useful for signals that are inherently periodic, ensuring continuity.