def indicator(condition):
   """
   :param condition: A boolean statement on which to evaluate inputs.
   :type condition: bool
   :return: 1 if the condition holds, 0 otherwise.
   :rtype: float

   Implementation of the indicator function 1_{condition}(x)
   """
   return float(condition)