f4enix.input.ww_gvr.ratios_calculation.calculate_max_ratio_array#
- f4enix.input.ww_gvr.ratios_calculation.calculate_max_ratio_array(array: ndarray) ndarray#
Calculate the maximum ratio of each value to its neighbours in a 3D array.
- Parameters:
array (np.ndarray) – The input 3D array.
- Returns:
A 3D array of the same shape as the input, where each value is the maximum ratio of the corresponding value in the input array to its neighbours.
- Return type:
np.ndarray