
Apply spatial smoothing to variables on a hexagonal grid
Source:R/cpp_wrapper.R
smooth_variables.RdSmooths variables using the topology produced by [`compute_topology()`]. Uses the compiled C++ implementation when available; if the C++ call fails for an unexpected reason, falls back to the pure-R implementation and re-raises clear validation errors.
Arguments
- variable_values
Named list of numeric vectors (one per variable).
- neighbors
List of neighbour lists (per order). Either the `neighbors` element of a topology, or the topology object itself.
- weights
List with `center_weight` and `neighbor_weights`. Either the `weights` element of a topology, or the topology object itself.
- hex_indices
Integer vector of cell indices to process. Defaults to all cells.
- var_names
Character vector of variable names. Defaults to `names(variable_values)`.