Lably
Skip to content

Step function

Linear combination of indicator functions of real intervals

  • 2 min read
  • 3 chapters
An example of a generic step function.
No machine-readable author provided. דוד שי assumed (based on copyright claims). · Public domain

Related on Lably

Through Function (mathematics), Real number and Linear combination

Definition and first consequences

A function f:R→R is called a step function if it can be written as

f(x)=∑i=0nαiχAi(x), for all real numbers x

where n≥0, αi are real numbers, Ai are intervals, and χAi is the indicator function of Ai:

χAi(x)={1if x∈Ai0if x∉Ai

In this definition, the intervals Ai can be assumed to have the following two properties:

  1. The intervals are pairwise disjoint: Ai∩Aj=∅ for i≠j
  2. The union of the intervals is the entire real line: ⋃i=0nAi=R.

Indeed, if that is not the case to start with, a different set of intervals can be picked for which these assumptions hold. For example, the step function

f=4χ[−5,1)+3χ(0,6)

can be written as

f=0χ(−∞,−5)+4χ[−5,0]+7χ(0,1)+3χ[1,6)+0χ[6,∞).

Variations in the definition

Sometimes, the intervals are required to be right-open or allowed to be singleton. The condition that the collection of intervals must be finite is often dropped, especially in school mathematics, though it must still be locally finite, resulting in the definition of piecewise constant functions.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Functions