Grid Boundary Condition.Reflect Property
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.1.0
public static GridBoundaryCondition Reflect { get; }Property Value
GridBoundaryConditionRemarks
When an interpolation stencil requires a value at index i outside [0, N-1], the index is reflected about the nearest boundary. The reflection period is 2(N-1).
Effect: For a grid with N points, index -1 maps to 1, index -2 maps to 2, index N maps to N-2, etc. This creates a symmetric extension of the data.
Use cases: Data that is symmetric or has mirror symmetry at boundaries, even functions, or when you want to ensure smooth derivatives at edges without periodicity.
Mathematical basis: Reflects the function as if boundaries are mirrors, equivalent to extending f with f(-x) = f(x) near the left edge and f(2L-x) = f(x) near the right edge.