eelbrain.NDVar.argmin

NDVar.argmin(axis=None, name=None)

Find the index of the smallest value

ndvar[ndvar.argmin()] is equivalent to ndvar.min().

Parameters
  • axis (Union[str, int, None]) – Axis along which to find the minimum (by default find the minimum in the whole NDVar).

  • name (Optional[str]) – Name of the output NDVar (default is the current name).

Returns

Index appropriate for the NDVar’s dimensions. If NDVar has more than one dimensions, a tuple of indices.

Return type

argmin