---
title: Weighted Essentially Non-Oscillatory Shepard
url: https://www.emergentmind.com/topics/weighted-essentially-non-oscillatory-shepard-weno-shepard
type: topic
---

# Weighted Essentially Non-Oscillatory Shepard

The Weighted Essentially Non-Oscillatory Shepard (WENO–Shepard) method is a nonlinear interpolation technique designed to improve the accuracy and stability of the classical Shepard method for scattered data, particularly in the presence of discontinuities. By embedding the core ideas of the WENO interpolation framework into the Shepard approach, the method adaptively suppresses the influence of data near discontinuities and efficiently captures sharp transitions while maintaining desirable properties in smooth regions. The method, as formalized in “Weighted Essentially Non-Oscillatory Shepard method” by Levin, Ramón, Ruiz-Álvarez, and Yáñez, provides a robust interpolant for scientific computing and data analysis tasks involving high-dimensional, scattered, and possibly piecewise-smooth functions [2412.02286].

## 1. Classical Shepard Interpolation: Principles and Limitations

The classical Shepard interpolation constructs a smooth, partition-of-unity approximation for functions defined on scattered data. Given a dataset $\{x_i, f_i = f(x_i)\}_{i=1}^N$ in a bounded domain $\Omega \subset \mathbb{R}^n$ with fill-distance $h$, and a compactly supported, radial weight function $\omega(r)$, the unnormalized weights are $\omega_i(x) = \omega(\|x - x_i\| / h)$ and the normalized Shepard weights are
\[
W_i(x) = \frac{\omega_i(x)}{\sum_{j=1}^N \omega_j(x)}.
\]
The Shepard interpolant is
\[
I_S[f](x) = \sum_{i=1}^N W_i(x) f_i.
\]
This approach guarantees partition of unity, non-negativity, and exact reproduction of constants. For $C^\nu$ weights, $I_S$ inherits the same smoothness and achieves first-order convergence in the uniform norm for $C^1$ functions:
\[
\|f - I_S[f]\|_{\infty} \leq C h \max_{|\alpha|=1} \|D^\alpha f\|_\infty.
\]
However, near sharp discontinuities (across codimension-1 surfaces), Shepard weights do not adapt, so nodes from both sides of a jump contribute, resulting in severe smearing (diffusion) of the discontinuity over a region of width $O(h)$.

## 2. Core Concepts of Weighted Essentially Non-Oscillatory (WENO) Interpolation

WENO schemes were devised to provide non-oscillatory approximations for hyperbolic partial differential equations, particularly near discontinuities. The methodology involves:
- Splitting the interpolant construction into several lower-order sub-stencils.
- Evaluating a local smoothness indicator $\beta_i$ for each sub-stencil: $\beta_i \to 0$ if the local data is smooth; $\beta_i = O(1)$ across jumps.
- Defining nonlinear weights:
\[
\alpha_i = \frac{d_i}{(\epsilon + \beta_i)^r},
\]
where $d_i$ are baseline (linear) weights, $\epsilon > 0$ prevents division by zero, and $r$ tunes sensitivity.
- Normalizing:
\[
\omega_i = \frac{\alpha_i}{\sum_k \alpha_k}.
\]
This weighting scheme effectively suppresses oscillatory contributions from discontinuous substencils, localizing the support of the interpolant near smooth data.

## 3. Construction of the WENO–Shepard Interpolant

The WENO–Shepard method generalizes the WENO philosophy to the scattered data context. The process is as follows:

- **Shepard base weights:** For each data node $x_i$, compute $\omega_i(x)$ and normalized $W_i(x)$ as above.

- **Smoothness indicators:** For each $x_i$, select a local stencil $S_i = \{x_{j_i}: \|x_{j_i} - x_i\| < \delta_i = c h\}$ with $c$ a constant. Fit a degree-1 polynomial $p_i$ via least squares on $S_i$, then set
\[
\beta_i = \frac{1}{|S_i|} \sum_{x_{j_i} \in S_i} |f(x_{j_i}) - p_i(x_{j_i})|.
\]
Here, $\beta_i = O(h^2)$ in $C^1$ regions but $O(1)$ if $S_i$ straddles a jump.

- **Nonlinear weights:** Define the unnormalized nonlinear weights
\[
\alpha_i(x) = \frac{W_i(x)}{(\epsilon + \beta_i)^t}
\]
with $\epsilon = 10^{-14}$, $t = 4$ (so $r = 2t$ in standard WENO notation).

- **Final weights and interpolant:** Normalize
\[
\omega_i^{\mathrm{WENO}}(x) = \frac{\alpha_i(x)}{\sum_j \alpha_j(x)}, \qquad I_{\mathrm{WENO-S}}[f](x) = \sum_{i=1}^N \omega_i^{\mathrm{WENO}}(x) f_i.
\]
Nodes with stencils crossing a jump (large $\beta_i$) have $\omega_i^{\mathrm{WENO}} \to 0$ as $h \to 0$, thus suppressing overshoots and diffusion near discontinuities.

## 4. Algorithmic Steps for Implementation

The WENO–Shepard algorithm may be implemented as follows for scattered data in $\mathbb{R}^n$:

1. Set the global fill-distance $h$ and constant $c$. Thus, each stencil radius is $\delta_i = c h$.
2. Choose a radial compactly-supported weight $\omega(r)$ (examples: Wendland’s $W_2$, $W_4$).
3. For each data node $x_i$:
   - Build the stencil $S_i = \{x_j : \|x_j - x_i\| < c h\}$.
   - Compute the least-squares linear fit $p_i$ and the corresponding $\beta_i$.
4. For each evaluation point $x$:
   - Compute unnormalized Shepard weights $\omega_i(x)$.
   - Compute $W_i(x)$, then $\alpha_i(x) = W_i(x) / (\epsilon + \beta_i)^t$.
   - Normalize $\omega_i^{\mathrm{WENO}}(x) = \alpha_i(x)/\sum_j \alpha_j(x)$.
   - Return $I_{\mathrm{WENO-S}}[f](x) = \sum_i \omega_i^{\mathrm{WENO}}(x) f_i$.

Discontinuities across hypersurfaces $\Gamma$ are handled automatically; nodes with stencils intersecting $\Gamma$ have large $\beta_i$, resulting in negligible weight.

## 5. Analytical Guarantees: Smoothness, Accuracy, and Behavior Near Discontinuities

Three main theoretical results characterize the properties of the WENO–Shepard method [2412.02286]:

- **Smoothness Preservation:** If the selected kernel $\omega \in C^\nu(\Omega)$, then $I_{\mathrm{WENO-S}}[f] \in C^\nu(\Omega)$.

- **Convergence in Smooth Regions:** For $f \in C^1(\overline{\Omega})$ and quasi-uniform data with fill-distance $h$,
  \[
  \|f - I_{\mathrm{WENO-S}}[f]\|_\infty \leq C h \max_{|\alpha|=1} \|D^\alpha f\|_\infty,
  \]
  matching the convergence of classical Shepard.

- **Suppression of Spurious Diffusion:** If $f$ is piecewise $C^1$ with a discontinuity across a smooth hypersurface $\Gamma$, for $x_0$ a distance at least $h(1+\epsilon_0)$ from $\Gamma$,
  \[
  |f(x_0) - I_{\mathrm{WENO-S}}[f](x_0)| = O(h).
  \]
  In contrast, classical Shepard diffuses the jump over a region of width $O(h)$; WENO–Shepard sharply confines the diffusion close to $\Gamma$.

## 6. Empirical Performance: Numerical Results

Validation of the WENO–Shepard method is provided through two principal numerical experiments:

- **Smooth Benchmark (Franke’s Function):** Testing on both regular grids and scattered Halton nodes (using Wendland $W_2$, $W_4$ kernels and an appropriate shape parameter), both classical Shepard and WENO–Shepard show expected $O(h)$ convergence in both maximum absolute error (MAE) and root mean squared error (RMSE). WENO–Shepard matches or marginally improves classical errors in smooth zones.

- **Piecewise-Smooth Benchmark (Discontinuous Functions):** For test functions with a unit-height jump across a line, circle, or square boundary, constructed as
  \[
  \tilde{f}(x, y) = \begin{cases}
  f(x, y) + 1, & \gamma(x, y) \geq 0,\\
  f(x, y), & \gamma(x, y) < 0
  \end{cases}
  \]
  classical Shepard interpolates severe jump smearing, while WENO–Shepard sharply demarcates the discontinuity. Graphical and tabular results display this suppression of non-physical diffusion near jumps.

## 7. Summary and Significance

The WENO–Shepard method unites the adaptability of WENO weights with the dimension-agnostic ease of the Shepard framework. By modulating the classical linear weights $W_i(x)$ with nonlinear terms $1/(\epsilon + \beta_i)^t$, the construction maintains the classic convergence rate and smoothness on regular regions and nearly removes overshoot and shock smearing near discontinuities. The method is straightforward to implement in any dimension, requires only zero-degree (linear) least squares fits for $\beta_i$, and operates robustly on scattered data [2412.02286]. This approach yields a valuable interpolation tool for scientific computing and applied mathematics, especially when faithfully capturing localized features in sparsely sampled, high-dimensional, or discontinuous data is essential.

Source: https://www.emergentmind.com/topics/weighted-essentially-non-oscillatory-shepard-weno-shepard