In a function, how should the median be used correctly?

Normally, one would use the tilde like this:

$$
Y = \tilde{X}
$$

However, it is stated [here](https://en.wikipedia.org/wiki/Median) that 
> "There is no widely accepted standard notation for the median, but some authors represent the median of a variable x either as x͂ or as μ1/2 sometimes also M."

Therefore my question is, if it is also possible to use the median of a set of numbers like this (or else) when referring to it in the text? Since I have a variable with a lot of indices, the tilde doesn't seem right here.  

$$
Y = med\{1,2,3,3,4,5\}
$$