Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Mathematical Functions > Numerical Functions >

DiscreteIndicator

DiscreteIndicator[x, x1, {u1, u2, ...}]
yields the discrete indicator function, equal to 1 if x=x1 and 0 if x=ui for any i.
Evaluate at discrete points:
Products of indicator functions effectively correspond to an outer product:
Evaluate at discrete points:
In[1]:=
Click for copyable input
Out[1]=
 
Products of indicator functions effectively correspond to an outer product:
In[1]:=
Click for copyable input
Out[1]=
Represent nominal terms in fitting results:
See the functional form:
Evaluate the FittedModel at points a and b:
DiscreteIndicator is equivalent to Boole when both values are in the set:
They differ if either of the first two values is not in the set:
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team