I am trying to see how to have more than one condition using Iverson bracket notion. Basically, I am trying to represent this if statement formally.
Count number of occurence when [ (A<x) and (B<y)] is true.
I am aware of the following question.
My first guess was:
$$C(x) = \sum_{i=1}^n [A < x][B < y]$$
which I am not sure if true.
x and y are arbitrary numbers, while A and B values are attributes of each element in a set where the size of the set is n. The pseudocode for the above statement is:
for i in n:
if i.A < x and i.B < y:
count++
where count is the total number of time the condition was true.