pyntbci.utilities.itr
- pyntbci.utilities.itr(n: int | ndarray[tuple[Any, ...], dtype[_ScalarT]], p: float | ndarray[tuple[Any, ...], dtype[_ScalarT]], t: float | ndarray[tuple[Any, ...], dtype[_ScalarT]]) ndarray[tuple[Any, ...], dtype[_ScalarT]] [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