pyriemann_qiskit.utils.math.union_of_diff¶
- pyriemann_qiskit.utils.math.union_of_diff(*arrays)[source]¶
Return the positions for which at least one of the array as a different value than the others.
e.g.:
A = 0 1 0 B = 0 1 1 C = 1 1 0
return A = True False True
- Parameters:
arrays (ndarray[], shape (n_samples,)[]) – A list of numpy arrays.
- Returns:
diff – A list of boolean. True at position i indicates that one of the array as a value different from the other ones at this position.
- Return type:
ndarray, shape (n_samples,)
Notes
Added in version 0.2.0.