<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_regular(self, rtol: float = 1.e-5, atol: float = 1.e-8) -> bool: """Whether all bins have the same width. Parameters rtol, atol : numpy tolerance parameters """

        return np.allclose(np.diff(self.bins[1] - self.bins[0]), 0.0, rtol=rtol, atol=atol)