Step function

maths
Step function

This is a function $f: X \rightarrow Y$ where it is defined piecewise for different region of $X$.