- Let $a$ and $b$ be parameters.
How can we say formally that if $d_{ij}\in [a,b]$, then $c_{ij}=f(d_{ij})$ and if $d_{ij}\notin [a,b]$, then $c_{ij}=0$?
- I want to define $M_{i}$ as the combination of $j$ indexes while $d_{ij}< b$. Is the following notation correct?
$$M_{i}=\{j \in J :d_{ij}< b\}$$
$$c_{i,j} = \begin{cases} 0, & d_{i,j} \not \in [a,b] \ f(d_{i,j}), & d_{i,j} \in [a,b] \end{cases}$$
or, if one wants to use the language of characteristic functions,
$$\mathbf{1}_A(x) := \begin{cases} 1, & x \in A \ 0, & x \not \in A \end{cases}$$
then you could say
$$c_{i,j} = f(d_{i,j}) \cdot \mathbf{1}{[a,b]}(d{i,j})$$
These are ultimately just the same thing; I wouldn't overcomplicate it unless you have a particular need in mind.
– PrincessEev Jan 04 '23 at 07:37