Function: min(numbers("xxr") if gradient[2](min(numbers("xxr"), numbers('yyx'))) > mean(gradient[2](min(numbers("xxr"), numbers('yyx'))), min(numbers("xxr"), numbers('yyx'))) else min(numbers("xxr"), numbers('yyx')), mean(gradient[2](min(numbers("xxr"), numbers('yyx'))), min(numbers("xxr"), numbers('yyx'))))