nearest_indices#
- mhm_tools.pre.fill_nearest.nearest_indices(input_positions, target_positions)[source]#
Return nearest source indices for target coordinate positions.
- Parameters:
input_positions (numpy.ndarray) – Two-dimensional array of valid source positions with shape
(n_source, n_dimensions).target_positions (numpy.ndarray) – Two-dimensional array of target positions with shape
(n_target, n_dimensions).
- Returns:
Indices into
input_positionsfor the nearest source cell of each target position.- Return type: