tedana.selection.selection_utils.getelbow

getelbow(arr, return_val=False)[source]

Get elbow using linear projection method - moderate.

Parameters:
  • arr ((C,) array_like) – Metric (e.g., Kappa or Rho) values.

  • return_val (bool, optional) – Return the value of the elbow instead of the index. Default: False

Returns:

obj:int or float – Either the elbow index (if return_val is True) or the values at the elbow index (if return_val is False)