Characteristic function (indicator function)
The function that records membership in a set by 0/1 values.
Characteristic function (indicator function)
Let be a set and let . The characteristic function (or indicator function) of is the function defined by
Indicator functions convert set membership questions into algebraic statements and are a standard device in integration and measure theory (e.g., simple functions are finite linear combinations of indicators).
Examples:
- If and , then for and otherwise.
- If , then is the constant- function on .
- If , then is on rationals and on irrationals (a classical highly discontinuous function).