2
$\begingroup$

I have written a notation representing a counter for a condition:

$M \leftarrow \displaystyle \sum_{i =1}^{|X|} [B_j = X_i]$

So far this gives me a number for a specific j (the counter), but I want to turn this into a set for all values of j in such a way M is representing a multiset. M would be something like this:

$M = \{1,1,2,4,5\}$

How can I fix my notation to represent what I want?

thanks

1 Answers 1

2

Assuming your indexing starts at $0$ for the first element, then you want to sum to the order of $X - 1$. For example, the set

I think this might work:

$M = \left\{M_j \mid M_j \leftarrow \displaystyle \sum_{i =0}^{|X|-1} [B_j = X_i]; 0\le j < |M|\right\}.$

Of course, determining $|M|$ requires knowing in advance the number of counters = $C$, so the condition $0 \le j < C$ should probably replace the condition $0 \le j < |M|$:

$M = \left\{M_j \mid M_j \leftarrow \displaystyle \sum_{i =0}^{|X|-1} [B_j = X_i]; 0\le j < C\right\}.$

  • 0
    Good enough!...2012-12-23