contingency_table#
- rojak.turbulence.metrics.contingency_table(first_var: DataArray, second_var: DataArray, sum_over: str) ContingencyTable[source]#
Contingency Table for multidimensional arrays
Computed contingency table as defined as,
\[\begin{split}\begin{array}{c|c|c|c} & y = 1 & y = 0 & \text{Total} \\ \hline x = 1 & n_{11} & n_{10} & n_{1\bullet} \\ x = 0 & n_{01} & n_{00} & n_{0\bullet} \\ \hline \text{Total} & n_{\bullet1} & n_{\bullet0} & n \end{array}\end{split}\]- Parameters:
- Returns:
Instance of
ContingencyTable- Return type: