In mathematics, a function on the reals R is a step function if it can be written as a finite linear combination of indicator functions of half-open intervals.
Let the following quantities be given:
- a sequence of coefficients
- a sequence of interval margins
- a set of functions
such that:



Definition: Given the notations above, a function f:R→R is a step function if and only if it could be written as

Note: Step functions so defined are piecewise constant.
Special step functions