Indicator function: Difference between revisions

Content deleted Content added
Tags: Mobile edit Mobile web edit Advanced mobile edit
No edit summary
Tags: Reverted Visual edit
Line 5:
 
[[Image:Indicator function illustration.png|right|thumb|A three-dimensional plot of an indicator function, shown over a square two-dimensional ___domain (set {{mvar|X}}): the "raised" portion overlays those two-dimensional points which are members of the "indicated" subset ({{mvar|A}}).]]
In [[mathematics]], an '''indicator function''' or a '''characteristic function''' of a [[subset]] of a [[Set (mathematics)|set]] is a [[Function (mathematics)|function]] that maps elements of the subset to one, and all other elements to zero. That is, if {{mvar|A}} is a subset of some set {{mvar|X}}, then <math>\mathbf{1I}_{A}(x)=1</math> if <math>x\in A,</math> and <math>\mathbf{1}_{A}(x)=0</math> otherwise, where <math>\mathbf{1}_A</math> is a common notation for the indicator function. Other common notations are <math>I_A,</math> and <math>\chi_A.</math>
 
The indicator function of {{mvar|A}} is the [[Iverson bracket]] of the property of belonging to {{mvar|A}}; that is,
:<math>\mathbf{1I}_{A}(x)=[x\in A].</math>
 
For example, the [[Dirichlet function]] is the indicator function of the [[rational number]]s as a subset of the [[real number]]s.