eelbrain.NDVar.argmax

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

Find the index of the largest value

ndvar[ndvar.argmax()] is equivalent to ndvar.max().

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

  • name (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

argmax