step function

noun
  1. 1

    A function from the real line to a finite subset of the real line.

Source: https://en.wiktionary.org/wiki/step%20function