GridBoundaryCondition.Periodic Property

Gets a boundary condition that wraps indices periodically using modulo arithmetic.

Definition

Namespace: Numerics.NET.Curves.Surfaces
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.1.0
C#
public static GridBoundaryCondition Periodic { get; }

Property Value

GridBoundaryCondition

Remarks

When an interpolation stencil requires a value at index i outside [0, N-1], the index is wrapped using modulo: i' = ((i % N) + N) % N.

Effect: The grid is treated as periodic (wraps around). Index -1 maps to N-1, index N maps to 0, etc.

Use cases: Data that is naturally periodic, such as angular coordinates (longitude, phase angles), periodic signals, or toroidal domains.

Note: For smooth periodic interpolation, ensure that grid values at the boundaries are consistent (e.g., f[0] ≈ f[N-1] for 1D).

See Also