pyntbci.utilities.itr
- pyntbci.utilities.itr(n: int | ndarray[Any, dtype[_ScalarType_co]], p: float | ndarray[Any, dtype[_ScalarType_co]], t: float | ndarray[Any, dtype[_ScalarType_co]]) ndarray[Any, dtype[_ScalarType_co]] [source]
Compute the information-transfer rate (ITR).
- Parameters:
n (int | NDArray:) – The number of classes.
p (float | NDArray:) – The decoding accuracy between 0 and 1.
t (float | NDArray:) – The decoding time in seconds (including inter-trial time).
- Returns:
itr – The ITR in bits per minute.
- Return type:
float | NDArray