def __contains__(self, item):
if (not isinstance(item, tuple)) or (<EOL>isinstance(item, tuple) and (len(item) != <NUM_LIT:2>)<EOL>):<EOL><INDENT>return False<EOL><DEDENT>tchk = any([isinstance(item[<NUM_LIT:0>], typ) for typ in [int, float]])<EOL>if not tchk:<EOL><INDENT>return False<EOL><DEDENT>tchk = any([isinstance(item[<NUM_LIT:1>], typ) for typ in [int, float, complex]])<EOL>if not tchk:<EOL><INDENT>return False<EOL><DEDENT>indices = [np.where(self._indep_vector >= item[<NUM_LIT:0>])[<NUM_LIT:0>][<NUM_LIT:0>]]<EOL>if indices[<NUM_LIT:0>]:<EOL><INDENT>indices.append(indices[<NUM_LIT:0>] - <NUM_LIT:1>)<EOL><DEDENT>for index in indices:<EOL><INDENT>icmp = np.isclose(<EOL>np.array([self._indep_vector[index]]),<EOL>np.array([item[<NUM_LIT:0>]]),<EOL>FP_RTOL,<EOL>FP_ATOL,<EOL>)<EOL>dcmp = np.isclose(<EOL>np.array([self._dep_vector[index]]),<EOL>np.array([item[<NUM_LIT:1>]]),<EOL>FP_RTOL,<EOL>FP_ATOL,<EOL>)<EOL>if icmp and dcmp:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
Test if an item is a data point in the waveform.

An item is in a waveform when it is a tuple with the characteristics of
the :py:data:`peng.Point` named tuple and its independent and dependent
values match a waveform's data point with :py:data:`peng.FP_ATOL`
absolute tolerance and :py:data:`peng.FP_RTOL` relative tolerance

:param item: Object
:type  item: any