eelbrain.Interaction.count
- Interaction.count(value, start=-1)
Cumulative count of the occurrences of
value
- Parameters
- Returns
count – Cumulative count of value in self.
- Return type
Examples
>>> a = Factor('abc', tile=3) >>> a Factor(['a', 'b', 'c', 'a', 'b', 'c', 'a', 'b', 'c']) >>> a.count('a') array([0, 0, 0, 1, 1, 1, 2, 2, 2])