Function: mean(gradient[2](mean(band pass(numbers('yxr')), numbers('yxr'))), mean(band pass(numbers('yxr')), numbers('yxr'))) if band pass(numbers('yxr')) > gradient[2](mean(band pass(numbers('yxr')), numbers('yxr'))) else mean(band pass(numbers('yxr')), numbers('yxr'))