In mathematics, a function on the real numbers is called a step function (or staircase function) if it can be written as a finite linear combination of indicator functions of intervals. Informally speaking, a step function is a piecewise constant function having only finitely many pieces.
A function is called a step function if it can be written as
where are real numbers, are intervals, and (sometimes written as ) is the indicator function of :